Re: customAttribute and content_type

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
You can set custom attributes for a template by specifying a map  
literal under name "attributes" in the template header:

<#ftl attributes={content_type: "text/html"} ... />

See <http://freemarker.org/docs/ref_directive_ftl.html> for more  
details.

Attila.

On Jul 12, 2008, at 1:43 AM, Zemian Deng wrote:

> Hi,
> In FMServlet I see template.getCustomAttribute ("content_type") that
> can override resp outout contentType. Where would I set this value? Is
> this per template?
>
> Thanks,
>
> -- 
> Sweet - a Scala web framework:
> http://code.google.com/p/sweetscala

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.