dlangspec.pdf?
Jacob Carlborg
doob at me.com
Sat Jan 5 15:02:48 PST 2013
On 2013-01-05 22:38, Philippe Sigaud wrote:
> I was just wondering if there was a way to make it a bit more D-ish. The
> $(NAME arg, arg) syntax feels like I'm entering another land when I
> have to use it.
Just do what PHP, Ruby and other similar languages do:
<% /* arbitrary D code */ %>
some text
<% /* more D code */ %>
Ruby has got Erb (Embedded Ruby). It's most often used to embed Ruby,
like above, in HTML but it's possible to to for any output format.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list