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