rip747 / Mustache.cfc

{{ mustache }} for ColdFusion
http://mustache.github.com/
MIT License
46 stars 22 forks source link

Added ability to space out section syntax #28

Closed awayken closed 9 years ago

awayken commented 9 years ago

Tweaked the SectionRegEx to allow some arbitrary whitespace after the {{ but before the # or / and then before the }}. Instead of requiring you to write: {{#is_old}} you can write {{ #is_old }}.

Added tests for this new flexibility and to verify that this same space leniency already existed for tags.

pmcelhaney commented 9 years ago

Seems legit.

https://github.com/mustache/spec/blob/master/specs/sections.yml#L259