Commits

colm...@a5195066-8e3e-0410-a82a-05b01b1b9875  committed 5a49a0e

Added a test case to reproduce issue #11.

  • Participants
  • Parent commits 2c49d6c

Comments (0)

Files changed (4)

File examples/docroot/extends_path2

+{% extends "path1/base2" %}
+{% block content %}
+start_content
+{% include "path1/include1" %}
+end_content
+{% endblock %}

File examples/docroot/path1/base2

+pre content
+
+{% block content %}default content{% endblock %}
+
+post

File examples/docroot/path1/include1

+This is include1

File src/tests/erlydtl_functional_tests.erl

         "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"]]}],
 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