- `{% if <variable> %}` is similar to if not empty($variable):
commit570e71343c076168503eb5d0a197c4215d175dd1
authorCésar D. Rodas <crodas@php.net>
Tue, 27 Jul 2010 07:53:07 +0000 (27 03:53 -0400)
committerCésar D. Rodas <crodas@php.net>
Tue, 27 Jul 2010 07:53:07 +0000 (27 03:53 -0400)
tree7ba18048e402ebf84c3c67049da8067234b2733f
parentd331c54908379909e871ab8daa675ea723ad83b6
- `{% if <variable> %}` is similar to if not empty($variable):
    Useful to check if a variable exists (Without throw a warning)
lib/Haanga/Compiler.php
lib/Haanga/Compiler/Parser.out
lib/Haanga/Compiler/Parser.php
lib/Haanga/Compiler/Parser.y
tests/assert_templates/variable_existe.html [new file with mode: 0644]
tests/assert_templates/variable_existe.tpl [new file with mode: 0644]
tests/tmp/4726e18009acee8a1c86a79b620c7ded71be5ddf.php
tests/tmp/8d56a9a504af63b0aa1f9e966ad860de9c65c99b.php
tests/tmp/d0e8258f9bf65ffe46eddfe8347bb2467fc069ea.php [new file with mode: 0644]
tests/tmp/e3288a8c38d2925df1b81c50c72b7eee31f8c2f9.php