$loader
$loader : \Charcoal\View\LoaderInterface
Mustache view rendering engine.
View Engines are comprised of 2 things:
LoaderInterfaceObject
set_loader() / Get with loader()loadtemplate() methodrender() method, which takes a $template and a $context argumentsEngines implements the
LoggerAwareInterface. A logger can be accessed with thelogger()method.
$loader : \Charcoal\View\LoaderInterface
setHelpers(array|\Traversable|\Charcoal\View\Mustache\HelpersInterface $helpers) : \Charcoal\View\Mustache\MustacheEngine
Set the engine's helpers.
| array|\Traversable|\Charcoal\View\Mustache\HelpersInterface | $helpers | Mustache helpers. |
If the given helper(s) are invalid.
Chainable
mergeHelpers(array|\Traversable|\Charcoal\View\Mustache\HelpersInterface $helpers) : \Charcoal\View\Mustache\MustacheEngine
Merge (replacing or adding) the engine's helpers.
| array|\Traversable|\Charcoal\View\Mustache\HelpersInterface | $helpers | Mustache helpers. |
If the given helper(s) are invalid.
Chainable
addHelper(string $name, mixed $helper) : \Charcoal\View\Mustache\MustacheEngine
Add a helper.
| string | $name | The tag name. |
| mixed | $helper | The tag value. |
Chainable
loader() : \Charcoal\View\LoaderInterface
setLoader(\Charcoal\View\LoaderInterface $loader) : void
| \Charcoal\View\LoaderInterface | $loader | A loader instance. |