123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <?php
- /**
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.5
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2013 Fuel Development Team
- * @link http://fuelphp.com
- */
- /**
- * NOTICE:
- *
- * If you need to make modifications to the default configuration, copy
- * this file to your app/config folder, and make them in there.
- *
- * This will allow you to upgrade fuel without losing your custom config.
- */
- return array(
- // ------------------------------------------------------------------------
- // Register extensions to their parsers, either classname or array config
- // ------------------------------------------------------------------------
- 'extensions' => array(
- 'php' => 'View',
- 'twig' => 'View_Twig',
- 'mustache' => 'View_Mustache',
- 'md' => 'View_Markdown',
- 'dwoo' => array('class' => 'View_Dwoo', 'extension' => 'tpl'),
- 'jade' => 'View_Jade',
- 'haml' => 'View_Haml',
- 'smarty' => 'View_Smarty',
- 'phptal' => 'View_Phptal',
- ),
- // ------------------------------------------------------------------------
- // Individual class config by classname
- // ------------------------------------------------------------------------
- // MARKDOWN ( http://michelf.com/projects/php-markdown/ )
- // ------------------------------------------------------------------------
- 'View_Markdown' => array(
- 'include' => \Package::exists('parser').'vendor'.DS.'markdown'.DS.'markdown.php',
- 'auto_encode' => true,
- 'allow_php' => true,
- ),
- // TWIG ( http://www.twig-project.org/documentation )
- // ------------------------------------------------------------------------
- 'View_Twig' => array(
- 'include' => APPPATH.'vendor'.DS.'Twig'.DS.'Autoloader.php',
- 'auto_encode' => true,
- 'views_paths' => array(APPPATH.'views'),
- 'delimiters' => array(
- 'tag_block' => array('left' => '{%', 'right' => '%}'),
- 'tag_comment' => array('left' => '{#', 'right' => '#}'),
- 'tag_variable' => array('left' => '{{', 'right' => '}}'),
- ),
- 'environment' => array(
- 'debug' => false,
- 'charset' => 'utf-8',
- 'base_template_class' => 'Twig_Template',
- 'cache' => APPPATH.'cache'.DS.'twig'.DS,
- 'auto_reload' => true,
- 'strict_variables' => false,
- 'autoescape' => false,
- 'optimizations' => -1,
- ),
- 'extensions' => array(
- 'Twig_Fuel_Extension'
- ),
- ),
- // DWOO ( http://wiki.dwoo.org/ )
- // ------------------------------------------------------------------------
- 'View_Dwoo' => array(
- 'include' => APPPATH.'vendor'.DS.'Dwoo'.DS.'dwooAutoload.php',
- 'auto_encode' => true,
- 'delimiters' => array('left' => '{{', 'right' => '}}'),
- 'environment' => array(
- 'autoescape' => false,
- 'nested_comments' => false,
- 'allow_spaces' => false,
- 'cache_dir' => APPPATH.'cache'.DS.'dwoo'.DS,
- 'compile_dir' => APPPATH.'cache'.DS.'dwoo'.DS.'compiled'.DS,
- 'cache_time' => 0,
- // Set what parser should do with PHP tags
- // 1 - Encode tags | 2 - Remove tags | 3 - Allow tags
- 'allow_php_tags' => 2,
- // Which PHP functions should be accessible through Parser
- 'allow_php_func' => array(),
- ),
- ),
- // MUSTACHE ( https://github.com/bobthecow/mustache.php )
- // ------------------------------------------------------------------------
- 'View_Mustache' => array(
- 'include' => \Package::exists('parser').'vendor'.DS.'Mustache'.DS.'Mustache.php',
- 'auto_encode' => true,
- 'delimiters' => array('left' => '{{', 'right' => '}}'),
- 'environment' => array(
- 'charset' => 'UTF-8',
- 'pragmas' => array(),
- ),
- ),
- // JADE PHP ( https://github.com/everzet/jade.php )
- // See notes in /parser/classes/view/jade.php
- // ------------------------------------------------------------------------
- 'View_Jade' => array(
- 'include' => APPPATH.'vendor'.DS.'Jade'.DS.'autoload.php.dist',
- 'auto_encode' => true,
- 'cache_dir' => APPPATH.'cache'.DS.'jade'.DS,
- ),
- // HAML / PHAMLP ( http://code.google.com/p/phamlp/ )
- // ------------------------------------------------------------------------
- 'View_Haml' => array(
- 'include' => APPPATH.'vendor'.DS.'Phamlp'.DS.'haml'.DS.'HamlParser.php',
- 'auto_encode' => true,
- 'cache_dir' => APPPATH.'cache'.DS.'haml'.DS,
- ),
- // SMARTY ( http://www.smarty.net/documentation )
- // ------------------------------------------------------------------------
- 'View_Smarty' => array(
- 'include' => APPPATH.'vendor'.DS.'Smarty'.DS.'libs'.DS.'Smarty.class.php',
- 'auto_encode' => true,
- 'delimiters' => array('left' => '{', 'right' => '}'),
- 'environment' => array(
- 'compile_dir' => APPPATH.'tmp'.DS.'Smarty'.DS.'templates_c'.DS,
- 'config_dir' => APPPATH.'tmp'.DS.'Smarty'.DS.'configs'.DS,
- 'cache_dir' => APPPATH.'cache'.DS.'Smarty'.DS,
- 'plugins_dir' => array(),
- 'caching' => false,
- 'cache_lifetime' => 0,
- 'force_compile' => false,
- 'compile_check' => true,
- 'debugging' => false,
- 'autoload_filters' => array(),
- 'default_modifiers' => array(),
- ),
- ),
- // Phptal ( http://phptal.org/manual/en/ )
- // ------------------------------------------------------------------------
- 'View_Phptal' => array(
- 'include' => APPPATH.'vendor'.DS.'PHPTAL'.DS.'PHPTAL.php',
- 'auto_encode' => true,
- 'cache_dir' => APPPATH.'cache'.DS.'PHPTAL'.DS,
- 'cache_lifetime' => 0,
- 'encoding' => 'UTF-8',
- 'output_mode' => 'PHPTAL::XHTML',
- 'template_repository' => '',
- 'force_reparse' => false,
- ),
- );
- // end of file parser.php
|