mammouth
mammouth copied to clipboard
request for string interpolation
It would be great if mammouth supported interpolation like coffeescript (and ruby): http://coffeescript.org/#strings "hello #{firstname} #{lastname || 'default'}"
also regex like ruby: print $1 if a =~ /string(.*)/
you can do interpolation in this way: {{ result = 128 echo "This is the result: $result" }}
it will translate to:
This is an unintended side effect not a feature but it comes close to your needs
+1 for interpolation, writing <a href="<?php echo './pages'.$thepage ?>"><?php echo $foo ?></a>
or
echo "<a href='./pages/$thepage'>$foo</a>"
is quite a pain (I don't even know if I wrote it right)
Will be added soon, now mammouth (github master version) supports html interpolation, see #54