btwael / mammouth

Unfancy PHP
http://mammouth.boutglay.com
MIT License
214 stars 22 forks source link

support for <?php if (condition) :?> syntax #41

Open couhajjou opened 10 years ago

couhajjou commented 10 years ago

We need to be able to mix the langage with html tags like in php :

<?php if ($page->template() != 'home'):?>

....
<?php else:?>

.... <?php endif?>

btwael commented 10 years ago

At this time the only method that you can use is Heredoc

{{
if somecondition
  echo `html tags or plain text`
else
  echo `other html tags or plain text`
}}

And we will work the add this feature in the next release.