浏览代码

use bbmustache package

pull/532/head
Tristan Sloughter 9 年前
父节点
当前提交
5866742dd8
共有 5 个文件被更改,包括 9 次插入15 次删除
  1. +1
    -0
      bootstrap
  2. +4
    -13
      rebar.config
  3. +2
    -1
      rebar.lock
  4. +1
    -0
      src/rebar.app.src
  5. +1
    -1
      src/rebar_templater.erl

+ 1
- 0
bootstrap 查看文件

@ -86,6 +86,7 @@ compile(App, FirstFiles) ->
FirstFilesPaths = [filename:join([Dir, "src", Module]) || Module <- FirstFiles],
Sources = FirstFilesPaths ++ filelib:wildcard(filename:join([Dir, "src", "*.erl"])),
[compile_file(X, [{i, filename:join(Dir, "include")}
,debug_info
,{outdir, filename:join(Dir, "ebin")}
,return | additional_defines()]) || X <- Sources].

+ 4
- 13
rebar.config 查看文件

@ -2,20 +2,12 @@
%% ex: ts=4 sw=4 ft=erlang et
{deps, [
{erlware_commons, "",
{git, "https://github.com/erlware/erlware_commons.git",
{branch, "master"}}},
{providers, "",
{git, "https://github.com/tsloughter/providers.git",
{tag, "v1.4.0"}}},
{erlware_commons, "0.12.0"},
{providers, "1.4.1"},
{getopt, "0.8.2"},
{bbmustache, "1.0.0"},
{relx, "",
{git, "https://github.com/erlware/relx.git",
{branch, "master"}}},
{mustache, ".*",
{git, "https://github.com/soranoba/mustache.git",
{tag, "v0.3.0"}}},
{getopt, "",
{git, "https://github.com/jcomellas/getopt.git",
{branch, "master"}}}]}.
{escript_name, rebar3}.
@ -41,7 +33,6 @@
{erl_opts, [debug_info]}
]},
%% We don't want erlydtl to attempt to run on the first compile pass to bootstrap
{bootstrap, []}
]}.

+ 2
- 1
rebar.lock 查看文件

@ -1,4 +1,5 @@
[{<<"relx">>,
[{<<"bbmustache">>,{pkg,<<"bbmustache">>,<<"1.0.0">>},0},
{<<"relx">>,
{git,"https://github.com/erlware/relx.git",
{ref,"74fec3455ba6dbb7d9e369137c1b15ab10804993"}},
0},

+ 1
- 0
src/rebar.app.src 查看文件

@ -17,6 +17,7 @@
common_test,
erlware_commons,
providers,
bbmustache,
relx,
inets]},
{env, [

+ 1
- 1
src/rebar_templater.erl 查看文件

@ -380,4 +380,4 @@ write_file(Output, Data, Force) ->
%% Render a binary to a string, using mustache and the specified context
%%
render(Bin, Context) ->
mustache:render(ec_cnv:to_binary(Bin), Context, [{key_type, atom}]).
bbmustache:render(ec_cnv:to_binary(Bin), Context, [{key_type, atom}]).

正在加载...
取消
保存