Browse Source

Renamed the dateformat module to erlydtl_dateformat


git-svn-id: http://erlydtl.googlecode.com/svn/trunk@133 a5195066-8e3e-0410-a82a-05b01b1b9875
colm.dougan 17 years ago
parent
commit
ae0d0dcdaa

+ 1 - 1
src/erlydtl/erlydtl_compiler.erl

@@ -303,7 +303,7 @@ body_ast(DjangoParseTree, Context, TreeWalker) ->
                 % because we want to allow escaping in the format string.
                 % We only want to remove the surrounding quotes, i.e. \"foo\"
                 Unquoted = string:sub_string(FormatString, 2, length(FormatString) - 1),
-                string_ast(dateformat:format(Unquoted), TreeWalkerAcc);
+                string_ast(erlydtl_dateformat:format(Unquoted), TreeWalkerAcc);
             ({'autoescape', {identifier, _, OnOrOff}, Contents}, TreeWalkerAcc) ->
                 body_ast(Contents, Context#dtl_context{auto_escape = list_to_atom(OnOrOff)}, 
                     TreeWalkerAcc);

+ 1 - 1
src/erlydtl/dateformat.erl → src/erlydtl/erlydtl_dateformat.erl

@@ -1,4 +1,4 @@
--module(dateformat).
+-module(erlydtl_dateformat).
 -export([format/1, format/2]).
 
 -define(TAG_SUPPORTED(C),

+ 1 - 1
src/tests/erlydtl_dateformat_tests.erl

@@ -175,7 +175,7 @@ test_runner(_DateParam, [], _TestNum, PassCount) ->
     PassCount;
 test_runner(DateParam, [{Input, Expect} | Rest], TestNum, PassCount) ->
     Text = "'" ++ Input ++ "' -> '" ++ Expect ++ "'",
-    IsPass = is(TestNum, Text, dateformat:format(DateParam, Input), Expect),
+    IsPass = is(TestNum, Text, erlydtl_dateformat:format(DateParam, Input), Expect),
     test_runner(DateParam, Rest, TestNum + 1, PassCount + IsPass).
     
 is(TestNum, Text, Input1, Input2) when Input1 =:= Input2, ?DISPLAY_PASSES ->