3 * Smarty Internal Plugin Compile Ldelim
4 * Compiles the {ldelim} tag
12 * Smarty Internal Plugin Compile Ldelim Class
15 * @subpackage Compiler
17 class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase
20 * Compiles code for the {ldelim} tag
21 * This tag does output the left delimiter
23 * @param array $args array with attributes from parser
24 * @param object $compiler compiler object
26 * @return string compiled code
28 public function compile($args, $compiler)
30 $_attr = $this->getAttributes($compiler, $args);
31 if ($_attr['nocache'] === true) {
32 $compiler->trigger_template_error('nocache option not allowed', $compiler->lex->taglineno);
34 // this tag does not return compiled code
35 $compiler->has_code = true;
37 return $compiler->smarty->left_delimiter;