Browse Source

Add failing test for issue #31.

Andreas Stenius 11 years ago
parent
commit
98f89cb0cd
2 changed files with 8 additions and 1 deletions
  1. 4 0
      tests/input/extends2
  2. 4 1
      tests/src/erlydtl_functional_tests.erl

+ 4 - 0
tests/input/extends2

@@ -0,0 +1,4 @@
+
+{% extends "base" %}
+{% block title %}replacing the base title{% endblock %}
+{% block content %}replacing the base content - variable: {{ test_var }} after variable {% endblock %}

+ 4 - 1
tests/src/erlydtl_functional_tests.erl

@@ -48,7 +48,7 @@ test_list() ->
         "custom_tag", "custom_tag1", "custom_tag2", "custom_tag3",
         "custom_call", 
         "include_template", "include_path", "ssi",
-        "extends_path", "extends_path2", "trans" ].
+        "extends_path", "extends_path2", "trans", "extends2" ].
 
 setup_compile("for_list_preset") ->
     CompileVars = [{fruit_list, [["apple", "apples"], ["banana", "bananas"], ["coconut", "coconuts"]]}],
@@ -88,6 +88,9 @@ setup("autoescape") ->
 setup("extends") ->
     RenderVars = [{base_var, "base-barstring"}, {test_var, "test-barstring"}],
     {ok, RenderVars};
+setup("extends2") ->
+    RenderVars = [{base_var, "base-barstring"}, {test_var, "test-barstring"}],
+    {ok, RenderVars};
 setup("filters") ->
     RenderVars = [
         {date_var1, {1975,7,24}},