[stringtemplate-interest] Formal parameters in web templates
Ran Tavory
rantav at gmail.com
Mon Oct 26 22:46:28 PDT 2009
A newbe question: Is it possible to define the list of formal parameters in
a template where my use case would be for a web page?
For example, in this template:
layout.st
<html>
<head>
<title>$title$</title>
<body>
$banner()$
<hr>
$body()$
</body>
</html>
I'd like to say that *$title$* is a required parameter. Would even be better
if types can be enforced, such as String, Number, Date, List of x etc, but
even without static typing, simply listing the formal arguments the template
expects would be great.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20091027/43c68bea/attachment.html
More information about the stringtemplate-interest
mailing list