[stringtemplate-interest] Formal parameters in web templates

Thomas Jackson thomas.jackson.iii at gmail.com
Tue Oct 27 06:58:31 PDT 2009


Are you asking for Template Reflection to see possible the attributes 
that need setting for that template?

> 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 <http://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!
> ------------------------------------------------------------------------
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>   


More information about the stringtemplate-interest mailing list