Skip to content

Commit

Permalink
rename the module from mustache to hxw_mustache
Browse files Browse the repository at this point in the history
This is to avoid conflict with modules containing their own mustache module,
such as rebar

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information
hxw committed Feb 18, 2014
1 parent bc4a83b commit f6764e5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ The Context is a dictionary:
Erlang dictionaries are system specific and cannot reliably be detected,
at present dictionaries are wrapped in a single element tuple (`{dict()}`).
A dictionary list is of type: `[{dict()}]`.

The name of this is module `hxw_mustache` to avoid namespace conflics with
rebar which also contains its own mustache.erl.
8 changes: 8 additions & 0 deletions src/hxw_mustache.app.src
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{application, hxw_mustache ,
[{description, "render mustache templates"},
{vsn, "1"},
{modules, []},
{registered, []},
{applications, [kernel, stdlib]},
{env, []}
]}.
4 changes: 2 additions & 2 deletions src/mustache.erl → src/hxw_mustache.erl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
%% mustache.erl
%% hxw_mustache.erl
%%%
%%% @author Christopher Hall <hsw@ms2.hinet.net>
%%% @copyright 2012 Christopher Hall <hsw@ms2.hinet.net>
%%% @license BSD3 see LICENSE.text for details
%%%
%%% @doc erlang implementation of mustache

-module(mustache).
-module(hxw_mustache).
-author("Christopher Hall <hsw@ms2.hinet.net>").

%% exports
Expand Down
6 changes: 0 additions & 6 deletions src/mustache.app.src

This file was deleted.

0 comments on commit f6764e5

Please sign in to comment.