flatiron / plates

Light-weight, logic-less, DSL-free, templates for all javascript environments!
MIT License
831 stars 69 forks source link

Regexp #94

Closed 3rd-Eden closed 11 years ago

3rd-Eden commented 11 years ago

Fixed the regular expression so it matches the whole tag name, not just a part of it. This for example creates completely broken pages when you remove parts from the layout.

indexzero commented 11 years ago

Based on what I know about plates this looks good. The tagname would be the beginning of the string that is being lexed.

I saw a similar bug when using plates that I also think this would solve: I had a key named source which is also "reserved" as a self closing tag.