Browse Source

Added a test case to reproduce issue #11.


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

+ 6 - 0
examples/docroot/extends_path2

@@ -0,0 +1,6 @@
+{% extends "path1/base2" %}
+{% block content %}
+start_content
+{% include "path1/include1" %}
+end_content
+{% endblock %}

+ 5 - 0
examples/docroot/path1/base2

@@ -0,0 +1,5 @@
+pre content
+
+{% block content %}default content{% endblock %}
+
+post

+ 1 - 0
examples/docroot/path1/include1

@@ -0,0 +1 @@
+This is include1

+ 7 - 1
src/tests/erlydtl_functional_tests.erl

@@ -46,7 +46,8 @@ test_list() ->
         "ifequal_preset", "ifnotequal", "ifnotequal_preset", "now",
         "var", "var_preset", "var_error", "cycle", "custom_tag",
         "custom_tag_error", "custom_call", 
-        "include_template", "include_path", "extends_path" ].
+        "include_template", "include_path",
+        "extends_path", "extends_path2" ].
 
 setup_compile("for_list_preset") ->
     CompileVars = [{fruit_list, [["apple", "apples"], ["banana", "bananas"], ["coconut", "coconuts"]]}],
@@ -154,6 +155,11 @@ setup("include_path") ->
 setup("extends_path") ->
     RenderVars = [{base_var, "base-barstring"}, {test_var, "test-barstring"}],
     {ok, RenderVars};
+setup("extends_path2") ->
+    RenderVars = [{base_var, "base-barstring"}, {test_var, "test-barstring"}],
+    {ok, RenderVars};
+
+
 
 %%--------------------------------------------------------------------       
 %% Custom tags