diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-06-09 22:09:00 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-06-09 22:11:12 -0500 |
commit | 1da4be04b021af62e24f91bf0f82849c78bd04b9 (patch) | |
tree | bbc8ce3736cb22522f11615cb86b850705657927 /phpBB/includes/template/twig/tokenparser/include.php | |
parent | 7ea0019a7167561b029ea727cf8be2e8f490dda7 (diff) | |
download | forums-1da4be04b021af62e24f91bf0f82849c78bd04b9.tar forums-1da4be04b021af62e24f91bf0f82849c78bd04b9.tar.gz forums-1da4be04b021af62e24f91bf0f82849c78bd04b9.tar.bz2 forums-1da4be04b021af62e24f91bf0f82849c78bd04b9.tar.xz forums-1da4be04b021af62e24f91bf0f82849c78bd04b9.zip |
[feature/twig] WIP extension/lexer/some tokenparsers/nodes
PHPBB3-11598
Diffstat (limited to 'phpBB/includes/template/twig/tokenparser/include.php')
-rw-r--r-- | phpBB/includes/template/twig/tokenparser/include.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/phpBB/includes/template/twig/tokenparser/include.php b/phpBB/includes/template/twig/tokenparser/include.php new file mode 100644 index 0000000000..d9421095d1 --- /dev/null +++ b/phpBB/includes/template/twig/tokenparser/include.php @@ -0,0 +1,33 @@ +<?php + +/* + * This file is part of Twig. + * + * (c) 2009 Fabien Potencier + * (c) 2009 Armin Ronacher + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Includes a template. + * + * <pre> + * {% include 'header.html' %} + * Body + * {% include 'footer.html' %} + * </pre> + */ +class phpbb_template_twig_tokenparser_include extends Twig_TokenParser_Include +{ + /** + * Gets the tag name associated with this token parser. + * + * @return string The tag name + */ + public function getTag() + { + return 'INCLUDE'; + } +} |