Look in TurbineResources.properties.  You need:

services.VelocityService.default.layout = VelocityOnlyLayout

I assume there is some way of setting this for a specific
template, but I haven't tried it myself.

HTH,

Scott

----- Original Message -----
From: "Stephane MOR" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 06, 2002 3:51 PM
Subject: [Turbine] : Templates - XML Output - Problem : How to remove
default HTML tags ?


> Hello,
>
> I am using Turbine 2.1, along with Velocity 1.2 as a templating engine.
> Turbine rocks and I'm very happy with it !
>
> I try and have a VelocityScreen to output an XML Stream.
> I have :
> - a VelocityScreen called XMLScreen :
>     public class XMLScreen {
>         public void doBuildTemplate(RunData data, Context context){
>             context.put("input", ":: Testing the input ::");
>         }
>     }
>
> - a Layout called "Xml.vm" :
>     <?xml version="1.0" encoding="ISO-8859-1"?>
>     $screen_placeholder
>
> - a template "XMLScreen" :
>     $data.setLayoutTemplate("/Xml.vm")
>     <app>
>         <input>$input</input>
>     </app>
>
> I would like , when I call
> http://localhost:8080/myapp/servlet/myapp/XMLScreen.vm , to have :
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <app>
>     <input>:: Testing the input ::</input>
> </app>
>
> , but I have :
>
> <html><head><title></title></head><body><?xml version="1.0"
> encoding="ISO-8859-1"?>
> <app>
>     <input>:: Testing the input ::</input>
> </app></body></html>
>
> Could anyone please tell me where these tags are added , and / or with
class
> to subclass
> (as this doesn't appear in any templates / layouts, I guess it is
> hardcoded ).
>
> I read something about VelocitySiteLayout in the docs, but don't have any
> idea on how to use it.
>
> Thanks,
> Stephane
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to