Browse Source

Add test for #220

Andreas Stenius 9 years ago
parent
commit
6729a5b70b

+ 2 - 2
test/erlydtl_test_defs.erl

@@ -1798,8 +1798,8 @@ all_test_defs() ->
                 "custom_tag3", "custom_tag4", "custom_tag_var", "custom_tag_lib_var", "custom_call", "include_template", "include_path",
                 "ssi", "extends_path", "extends_path2", "trans", "extends_for", "extends2",
                 "extends3", "recursive_block", "extend_recursive_block", "missing", "block_super",
-                "wrapper", "extends4", "super_escaped", "extends_chain", "reader_options", "ssi_reader_options"]
-
+                "wrapper", "extends4", "super_escaped", "extends_chain", "reader_options", "ssi_reader_options",
+                "extend_doubleblock"]
       ]},
      {"compile_dir",
       [setup_compile(T)

+ 6 - 0
test/files/input/base_doubleblock

@@ -0,0 +1,6 @@
+<head>
+  <title>Chicago Boss Admin - {% block title %}{% endblock %}</title>
+</head>
+<body>
+  <h1>Chicago Boss Admin - {% block title %}{% endblock %}</h1>
+</body>

+ 2 - 0
test/files/input/extend_doubleblock

@@ -0,0 +1,2 @@
+{% extends "base_doubleblock" %}
+{% block title %}General Info{% endblock %}