Feel free to crib or gut the haml-ejs work as you see fit.

On Sun, Apr 22, 2012 at 10:13 PM, Bernie <btel...@gmail.com> wrote:
> Upon more thinking, using the "^" as a delimiter may be exactly what we
> need, with the caveat that users might want to specify in a configuration
> option, which delimiters to use. For example, a user might pick from [:ejs,
> :handlebars, :mustache,...].
>
>
> On Saturday, April 21, 2012 10:40:05 AM UTC-7, Bernie wrote:
>>
>> Just want to make sure I don't use time that could be spent somewhere
>> else. Here's the idea:
>>
>> Many JS templating languages appear to use the "{{ some_content }}"
>> strategy for delimiting content, and Mustache and Handlebars appear to
>> be the most popular among those lang's.
>>
>> Since Haml appears to not have an easy way to add custom delimeters
>> (parsing occurs all the way in the parser.rb file), would it make
>> sense to add these "{{" delimeters directly to haml?
>>
>> The end result would be something like this:
>>
>> %table
>>   %tbody
>>     {{# each MyApp.MyArray
>>       %tr
>>         %td {{ someValue }}
>>   %tfoot
>>     %tr
>>       %td Some footer content
>>
>> Thoughts, concerns?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/haml/-/w9UJnuQWDngJ.
>
> To post to this group, send email to haml@googlegroups.com.
> To unsubscribe from this group, send email to
> haml+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to