3 class Haanga_Extension_Tag_Templatetag
5 static function generator($compiler, $args)
7 if (count($args) != 1) {
8 $compiler->Error("templatetag only needs one parameter");
11 if (Haanga_AST
::is_var($args[0])) {
12 $type = $args[0]['var'];
13 if (!is_string($type)) {
14 $compiler->Error("Invalid parameter");
16 } else if (Haanga_AST
::is_str($args[0])) {
17 $type = $args[0]['string'];
47 $compiler->Error("Invalid parameter");
52 $compiler->do_print($code, Haanga_AST
::str($str));