dev-master
9999999-dev https://github.com/alemachado/TemplateTwigAdds a Twig render method to Page
GPL-2.0
The Requires
- php >=5.3.0
- alemachado/templateenginefactory dev-master
twig module processwire
Adds a Twig render method to Page
Adds a Twig render method to Page
For more information on Twig visit http://twig.sensiolabs.org/
Copyright (C) 2012 by Paul Sheean porl42@gmail.com
Licensed under GNU/GPL v2, see LICENSE.txt
For Twig license see LICENSE.twig.txt, (*1)
TemplateTwig
directory to site/modules
TemplateTwig
module in ProcessWireYour templates now have access to a twig parameter that can be used as follows:, (*2)
$variables = array("foo" => "bar", "hello" => "world); echo $page->twig->render('basic-page.html.twig', $variables);
The templates
directory with this module contains sample Twig templates and views
that recreate the standard site-default templates with Twig. If you don't want to use
them then just create the templates/views
directory and use the files from here
as a guide to make your own., (*3)
Adds a Twig render method to Page
GPL-2.0
twig module processwire