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

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -