<div>Dear list members,<br></div><div><br></div><div>In "Continue Web applications in Racket" it gives this example of creating dynamic webpages using quosiquotes:</div><div>; render-greeting: string -> response<br>
; Consumes a name, and produces a dynamic response.<br>(define (render-greeting a-name)<br> (response/xexpr<br> `(html (head (title "Welcome"))<br> (body (p ,(string-append "Hello " a-name))))))</div>
<div><br></div><div>In "Web applications in Racket" it gives this example of creating dynamic webpages using @syntax in a template:</div><div>"simple.html" contains: </div><div>------------------------------------------------------------------------<br>
<html><br> <head><title>Fastest @thing in the West!</title></head><br> <body><br> <h1>Bang!</h1><br> <h2>Bang!</h2><br> </body><br> </html></div>
<div>------------------------------------------------------------------<br><br>(let ([thing "Templates"])<br> (include-template "simple.html"))<br></div><div>============================</div><div><br>
</div><div>Can someone tell me, is there some advantage or added funtionality in using the @syntax in a template over the first example using quosiquotes?</div><div><br></div><div>Thanks in advance,</div><div>Harry Spier</div>
<div><br></div>