php - Mustache - isset -


how can check if variable set in mustache? like:

<?php if(isset($foo) && isset($bar)): ?> 

{{#varname}}   {{varname}} {{/varname}} 

see http://mustache.github.com/mustache.5.html, first example


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -