mammouth icon indicating copy to clipboard operation
mammouth copied to clipboard

request for string interpolation

Open jots opened this issue 9 years ago • 3 comments

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(.*)/

jots avatar Dec 20 '14 23:12 jots

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

sanotto avatar Apr 29 '15 15:04 sanotto

+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)

Manaus avatar Jul 12 '15 20:07 Manaus

Will be added soon, now mammouth (github master version) supports html interpolation, see #54

btwael avatar Oct 27 '15 13:10 btwael