summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2010-01-07 22:18:55 -0700
committerDave Smith <dizzyd@dizzyd.com>2010-01-07 22:18:55 -0700
commit2d9af6cf485466d1b4e81707a8bb3ad8ebcd238b (patch)
treef3fd554e0157cfdfd8d4536a29ac947e37021cf6 /src
parent3ed1b99438b3a0990f1f36d8aad69d7b82ccf663 (diff)
Sketching out templating system
Diffstat (limited to 'src')
-rw-r--r--src/rebar_templater.erl51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl
new file mode 100644
index 0000000..3c7c05f
--- /dev/null
+++ b/src/rebar_templater.erl
@@ -0,0 +1,51 @@
+%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
+%% ex: ts=4 sw=4 et
+%% -------------------------------------------------------------------
+%%
+%% rebar: Erlang Build Tools
+%%
+%% Copyright (c) 2009 Dave Smith (dizzyd@dizzyd.com)
+%%
+%% Permission is hereby granted, free of charge, to any person obtaining a copy
+%% of this software and associated documentation files (the "Software"), to deal
+%% in the Software without restriction, including without limitation the rights
+%% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+%% copies of the Software, and to permit persons to whom the Software is
+%% furnished to do so, subject to the following conditions:
+%%
+%% The above copyright notice and this permission notice shall be included in
+%% all copies or substantial portions of the Software.
+%%
+%% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+%% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+%% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+%% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+%% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+%% THE SOFTWARE.
+%% -------------------------------------------------------------------
+-module(rebar_templater).
+
+-export([create/2]).
+
+-include("rebar.hrl").
+
+%% ===================================================================
+%% Public API
+%% ===================================================================
+
+create(_Config, _) ->
+ ok.
+
+
+
+%% ===================================================================
+%% Internal functions
+%% ===================================================================
+
+% execute_template([]) ->
+% ok;
+% execute_template([{file, Input, Output} | Rest]) ->
+% ok;
+% execute_template([{dir, Name} | Rest]) ->
+% ok.