[stringtemplate-interest] <@region> in .st files

Roman Odaisky roma at qwertty.com
Fri Jan 9 07:40:03 PST 2009


Greetings,

Is it possible to use regions in .st template files (as opposed to .stg group 
files)?

The actual problem I want to solve is adding <link>/<style>/<script>/etc tags 
to the <head> section of an HTML document. I have a main.st template that 
looks like this:

<html>
<head>
    ...
</head>
<body>
    ...
    $({pages/$page$})(...)$
</body>
</html>

and I want pages/something.st templates to be able to add something to the 
areas outside their jurisdiction. What is the correct way to implement this?

-- 
TIA
Roman.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2286 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090109/268b8757/attachment-0001.bin 


More information about the stringtemplate-interest mailing list