3 * Smarty Internal Plugin Compile Rdelim
4 * Compiles the {rdelim} tag
12 * Smarty Internal Plugin Compile Rdelim Class
15 * @subpackage Compiler
17 class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_CompileBase
20 * Compiles code for the {rdelim} tag
21 * This tag does output the right delimiter.
23 * @param array $args array with attributes from parser
24 * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
26 * @return string compiled code
27 * @throws \SmartyCompilerException
29 public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
31 $_attr = $this->getAttributes($compiler, $args);
32 if ($_attr[ 'nocache' ] === true) {
33 $compiler->trigger_template_error('nocache option not allowed', null, true);
35 // this tag does not return compiled code
36 $compiler->has_code = true;
38 return $compiler->smarty->right_delimiter;