shushanxingzhe / json-template

Automatically exported from code.google.com/p/json-template
0 stars 0 forks source link

{.end} should take an argument and assert that it closes the argument #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is optional, but some people might want this for readability in long
templates.

{.section foo}
  blah
{.end foo}

{.section @}
  blah
{.end @}

{.section bar}
  blah
{.end foo}  <-- throws an error, 'foo' is not closed here

{.singular?}
  1
{.plural?}
  2
{.end ?}  <-- Asserts that predicates are closed

Original issue reported on code.google.com by gtempacc...@yahoo.com on 30 Sep 2009 at 6:13