<div dir="ltr">Thomas - am I asking for template reflection? <div>Not necessarily. I'd actually prefer if the template could declare its formal parameters at the beginning so that someone reading it would know what it needs without having to dig in.</div>
<div><br><div class="gmail_quote">On Tue, Oct 27, 2009 at 3:58 PM, Thomas Jackson <span dir="ltr"><<a href="mailto:thomas.jackson.iii@gmail.com">thomas.jackson.iii@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Are you asking for Template Reflection to see possible the attributes that need setting for that template?<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
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?<br>
<br>
For example, in this template:<br>
<br>
</div><a href="http://layout.st" target="_blank">layout.st</a> <<a href="http://layout.st" target="_blank">http://layout.st</a>><div class="im"><br>
<html><br>
<head><br>
<title>$title$</title><br>
<body><br>
$banner()$<br>
<hr><br>
$body()$<br>
</body><br>
</html><br>
<br>
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.<br>
Thanks!<br></div>
------------------------------------------------------------------------<div class="im"><br>
<br>
_______________________________________________<br>
stringtemplate-interest mailing list<br>
<a href="mailto:stringtemplate-interest@antlr.org" target="_blank">stringtemplate-interest@antlr.org</a><br>
<a href="http://www.antlr.org/mailman/listinfo/stringtemplate-interest" target="_blank">http://www.antlr.org/mailman/listinfo/stringtemplate-interest</a><br>
<br>
</div></blockquote>
</blockquote></div><br></div></div>