Vincent Raeber wrote:
> I'm using Turbine to generate wml file. I have already made a web site with
> it, and it works well. I've to do the same in wml, but i should miss
> something, I can't generate wml file...
> Could somebody help me by telling me where can I tell Turbine to make wml
> and not html file? I'm using the Appache server.
> Sorry if my question is not so precise but i'm a novice with turbine...
You need to create a template set that contains WML markup instead of
HTML.
Also, you need to set the proper content type somewhere in the layout
template.
#set data.Response.ContentType = "text/vnd.wap.wml"
Another piece of advice is that you should use Velocity rather than WM,
because
WebMacro is known to have an annoying feature of inserting a blank line
at the
very beginning of the output. This produces malformed XML files, because
XML
must start with a processing instruction <?xml version="1.0"?>. Maybe
this
bug was fixed in WebMacro to date, frankly I didn't care to check... :-)
Rafal
--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]