You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggestion to make the Mustache_LambdaHelper class "invokable"? Would make lambda's and such a tiny bit cleaner, which I like, and very simple to do:
Added to Mustache_LambdaHelper
/** * Alias of render(string). */publicfunction__invoke($string)
{
return$this->render($string);
}
Should be backwards compatible and works for PHP>=5.3. The wiki says the mustache code works for PHP>=5.2, but don't think this would break that. It just wouldn't be usable for that version.
Suggestion to make the
Mustache_LambdaHelper
class "invokable"? Would make lambda's and such a tiny bit cleaner, which I like, and very simple to do:Added to
Mustache_LambdaHelper
Should be backwards compatible and works for PHP>=5.3. The wiki says the mustache code works for PHP>=5.2, but don't think this would break that. It just wouldn't be usable for that version.
Example usage
The text was updated successfully, but these errors were encountered: