Re: [MacRuby] #734: Mustache fails on call to render.
#734: Mustache fails on call to render. ----------------------------------------+----------------------------------- Reporter: larry@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: mustache #reduction ----------------------------------------+----------------------------------- Changes (by mattaimonetti@…): * keywords: mustache => mustache #reduction Comment: Mustache does something nasty and overwrites its own method in the method body and calls it recursively. MacRuby doesn't support that kind of black magic (yet). Here is a reduction: {{{ def foo(bar) puts 'calling original #foo' compiled = "def foo(baz); '#{bar}'; end" # overwiting the method we are in to call it again # from within itself instance_eval(compiled, __FILE__, __LINE__ - 1) foo(bar) end foo('foo:bar:baz') }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/734#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby