diff options
| author | Uwe.Tews <uwe.tews@localhost> | 2009-11-15 19:05:53 +0000 |
|---|---|---|
| committer | Uwe.Tews <uwe.tews@localhost> | 2009-11-15 19:05:53 +0000 |
| commit | 9f505c1c2387abb051c023b5d21a0d2f42bc5c73 (patch) | |
| tree | 0ef2640b5e760db25f93b36bd5dd43155482816f /libs/sysplugins/smarty_internal_compile_ldelim.php | |
| parent | 960fd1b3a95408ec81c83501d13e384d3a65002f (diff) | |
| download | smarty-9f505c1c2387abb051c023b5d21a0d2f42bc5c73.tar.gz smarty-9f505c1c2387abb051c023b5d21a0d2f42bc5c73.tar.bz2 smarty-9f505c1c2387abb051c023b5d21a0d2f42bc5c73.zip | |
- lexer/parser optimizations on quoted strings
Diffstat (limited to 'libs/sysplugins/smarty_internal_compile_ldelim.php')
| -rw-r--r-- | libs/sysplugins/smarty_internal_compile_ldelim.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libs/sysplugins/smarty_internal_compile_ldelim.php b/libs/sysplugins/smarty_internal_compile_ldelim.php new file mode 100644 index 00000000..c809990c --- /dev/null +++ b/libs/sysplugins/smarty_internal_compile_ldelim.php @@ -0,0 +1,32 @@ +<?php + +/** +* Smarty Internal Plugin Compile Ldelim +* +* Compiles the {ldelim} tag +* @package Smarty +* @subpackage Compiler +* @author Uwe Tews +*/ +/** +* Smarty Internal Plugin Compile Ldelim Class +*/ +class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase { + /** + * Compiles code for the {ldelim} tag + * + * This tag does output the left delimiter + * @param array $args array with attributes from parser + * @param object $compiler compiler object + * @return string compiled code + */ + public function compile($args, $compiler) + { + $this->compiler = $compiler; + $_attr = $this->_get_attributes($args); + // this tag does not return compiled code + $this->compiler->has_code = true; + return $this->compiler->smarty->left_delimiter; + } +} +?> |
