I'm new to Mustache, and can't seem to find a way to do the following:
Data:
$errors = array('Error one', 'error two', 'error three');
Desired output:
Error one<br />error two<br />error three
I would achieve this using PHP:
<?=implode('<br />', $errors)?>
Tried to so far:
{{#errors}}{{.}}<br />{{/errors}}
Which translates to an extra br at the end, given Mustache is logicless I don't think it can cut out the last one, maybe something with counts?
Is it possible using Mustache? If so, how??
Thanks in advance!
Edit
Seems elaborate for something simple, I guess using Mustache also means designing your data to conform with the templating system...