<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Noel Welsh wrote at 12/21/2010 09:06 AM:
<blockquote
cite="mid:AANLkTik2FBhny0gPBZJFk6C+tgOSC40ZSCqRx-1mSWTy@mail.gmail.com"
type="cite">
<pre wrap="">On Tue, Dec 21, 2010 at 1:52 PM, Neil Van Dyke <a class="moz-txt-link-rfc2396E" href="mailto:neil@neilvandyke.org"><neil@neilvandyke.org></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Note that the special syntax of the template library does not and will never permit extraneous nesting in the static (Racket syntax) portions of the template. Extraneous nesting is a convenience for dynamic parts.
</pre>
</blockquote>
<pre wrap=""><!---->
Can you expand on this template library. I'm not sure what you're referring to here, but I'm interested.
</pre>
</blockquote>
<br>
Heh, "expand on this template". :)<br>
<br>
I mentioned an old version of this library a long time ago, and I think
Untyped released something similar.<br>
<br>
Here's a simple example, which doesn't demonstrate all the features:<br>
<br>
(html-template<br>
(html (head (title "Foo & Bar"))<br>
(body (h1 (*value* essay-title))<br>
(p "Bunnies are nice." (br) "Yep."))))<br>
<br>
expands to:<br>
<br>
(begin (display "<html><head><title>Foo &amp;
Bar</title></head><body><h1>")<br>
(write-html essay-title)<br>
(display "</h1><p>Bunnies are nice.<br
/>Yep.</p></body></html>"))<br>
<br>
Compared to the traditional dynamic lists with SXML and xexprs, it's
easier and less error-prone to code, more static checking is possible,
and plausibly better run-time performance.<br>
<br>
I've been refining the language in 4 new libraries, as one library
informs another.<br>
<br>
<div class="moz-signature">-- <br>
<a class="moz-txt-link-freetext" href="http://www.neilvandyke.org/">http://www.neilvandyke.org/</a>
</div>
<br>
</body>
</html>