Do you have any benchmarks on the Temple version of Mustache compared
to the "official" version at http://github.com/defunkt/mustache?
To unsubscribe from this group, send email to guardians-of-the-temple+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
I've recently begun working on Mustache again and am in the process of
collecting a few test cases to begin experimenting with.
Basically, in other words, anything Magnus does that in any way
improves Mustache will be pulled into the official version because he
is awesome.
Chris
--
Chris Wanstrath
http://github.com/defunkt
> I think Mustache can gain more from Temple The Philosophy (keep
> parser/generator separated etc), than Temple The Library.
>
> Here's a more solid Mustache parser (using
> StringScanner): http://gist.github.com/337428, including improved syntax
> error messages:
>
> parser.rb:155:in `error': Unclosed tag (MustacheParser::SyntaxError)
> Line 1
> {{this tag only allows \w+}}
> ^
>
> parser.rb:155:in `error': Unclosed section "testing"
> (MustacheParser::SyntaxError)
> Line 1
> {{#testing}}
> ^
>
> parser.rb:155:in `error': Unclosed tag (MustacheParser::SyntaxError)
> Line 1
> {{! Comments can contain everything except newlines:
> ^
>
> // Magnus Holm
Wow, beautiful. I'll integrate this into Mustache proper as soon as I can.
Thanks! Mustachers the world over owe you a great debt.
Chris
> Not quite sure if it solves the problem you faced with the previous parser
> though (I don't really use Mustache), but hopefully it will be easier to fix
> those issues.
It's awesome. Many issues have been fixed - thank you!
> I'm also experimenting (in my head) with a Mustache generator with
> type-inference/where-the-value-comes-from-inference (so we don't need to do
> the slow @stack.each { }) which re-compiles itself as it knows more. It puts
> a few (but not too many IMO) limits on the template, but the performance
> would improve a lot.
Great, can't wait to check it out.
Chris