double braces confused for attributes
Closed this issue · 3 comments
younker commented
The following haml:
%div{:class => 'name'}
{{ name }}
Should return:
<div class='name'>
{{ name }}
</div>
However, it passes the regex for a tag and thus returns:
<div class='name'>
<>{{ name }}</>
</div>
This prevents us from using any number of templating solutions which utilize {{
. In my case, mustache.
@vti, I have sent you a patch based on https://github.com/younker/text-haml/commit/b04ccef33c29cf029c9ee0ebdd6718226f893b2e
younker commented
After finding your Text-Haml page on rt.cpan.org, I sent a slightly modified patch (which does not bump the version, I'll let you do that as you see fit if necessary) to bug-Text-Haml[at]rt.cpan.org.
vti commented
Can you make a pull request, please?