#734: Mustache fails on call to render.
----------------------------------------+-----------------------------------
Reporter: la...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords: mustache
----------------------------------------+-----------------------------------
Comment(by la...@…):
Replying to [comment:1 lsansone...@…]:
> We need a reduction for this problem.
Mustache::Template.render contains the following code:
def render(context)
# Compile our Mustache template into a Ruby string
compiled = "def render(ctx) #{compile} end"
# Here we rewrite ourself with the interpolated Ruby version of
# our Mustache template so subsequent calls are very fast and
# can skip the compilation stage.
instance_eval(compiled, __FILE__, __LINE__ - 1)
# Call the newly rewritten version of #render
render(context)
end
This produces an infinite loop in MacRuby.
--
Ticket URL: <http://www.macruby.org/trac/ticket/734#comment:2>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel