I'm working on figuring out how to do common things with Mustache.php. At this point, I'm trying to replace a native php switch statement in the template.
Given a "status" flag, e.g. 'A'
for Active,
and a set of display options like A => Active, I => Inactive, P=>Pending, D=>Deleted
,
how would I make a nice display string in Mustache.php by modifying the data in the template?
Example data for a table:
$users = array(
array('username'=>'william', 'status'=>'A', 'date_created'=>'7-01-2012'),
array('username'=>'john', 'status'=>'P', 'date_created'=>'5-17-2012')
);