php - Mustache vs other engines. Maybe I should use another template engine? -
i'm passing object mustache , object has method 1 parameter. possible mustache , php?
{{object.method(parameter)}} if gets laborious achieve mustache, template engine recommend?
remember need pass parameters object methods while in view context (like helpers). nearest possible mustache syntax welcome.
this not possible in mustache.
that said, solve whatever you're looking solve proper viewmodel, more mustache approach.
if absolutely must able pass parameters object methods, we're talking logic in templates. while not inherently bad thing, not mustache thing :)
for solid templating language php (besides mustache, of course), i'd recommend twig.
Comments
Post a Comment