19 new Twig_SimpleFunction(
'template_from_string',
'twig_template_from_string', array(
'needs_environment' =>
true)),
28 return 'string_loader';
48 if (null === $loader) {
56 }
catch (Exception $e) {
getLoader()
Gets the Loader instance.
getName()
{Returns the name of the extension.string The extension name}
Represents a template function.
setLoader(Twig_LoaderInterface $loader)
Sets the Loader instance.
getFunctions()
{Returns a list of functions to add to the existing list.array An array of functions} ...
twig_template_from_string(Twig_Environment $env, $template)
Loads a template from a string.
loadTemplate($name, $index=null)
Loads a template by name.
Loads a template from a string.
Stores the Twig configuration.