On 11/24/2010 12:48 PM, Adam Ruppe wrote:
Graham Fawcett asked:
Can I ask how you handled HTML templating?

Rolled my own. I started with a DOM implementation and added
templating stuff on top of it (my original
idea was to be able to copy/paste some of the D code into Javascript
with minimal changes - change auto to var, and see it work. I
didn't end up using that in practice though.)

The HTML part has minimal template stuff. You can put in a variable,
a couple special tags, and then it recognizes some attributes. That's
all - everything else is done on the code side or in CSS.

<snip>

Is there any chance we could see the code you wrote? I'm interested in using D for web dev, perhaps even with a custom HTTP server written in D, but I'd love to see examples of how to use it within CGI or, perhaps better yet, FastCGI.

Casey

Reply via email to