velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: How can I get rid of !DOCTYPE HTML ... header generated by Velocity?
Date Thu, 04 Oct 2001 09:09:13 GMT
On 10/4/01 3:14 AM, "Mircea Zahan" <mzahan@level7.ro> wrote:

> No, I can't, I didn't write the Velocity classes :op
> And modifying the Velocity classes is not a sollution, if that's
> what you suggest.
> 
> Velocity generates the header, you can check that on the
> simplest example you got. Look at the source of the rendered page,
> in the browser.
> 

Just to join in the fun :

Velocity doesn't generate or add any output that wasn't either part of the
input template, or the data objects placed in the context and used in the
template.

It doesn't generate any headers, doesn't know about HTML, etc.
 
Period :)

Geir

> ----- Original Message -----
> From: "Bojan Smojver" <bojan@binarix.com>
> To: <velocity-user@jakarta.apache.org>
> Sent: Thursday, October 04, 2001 10:00 AM
> Subject: Re: How can I get rid of !DOCTYPE HTML ... header generated by
> Velocity?
> 
> 
>> Mircea Zahan wrote:
>>> 
>>> Hello everybody.
>>> 
>>> I need to build a site which needs only IE compatibility.
>>> 
>>> So, I need that my generated HTML not to be by the HTML 4.0 standard,
>>> but to use IE's extensions.
>>> 
>>> Velocity generates the <!DOCTYPE HTML ....> header which tells IE
>>> to conform to the 4.0 standard.
>> 
>> Can you point to the code that does that?
>> 
>> Bojan
> 

-- 
Geir Magnusson Jr.     geirm@optonline.net
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin



Mime
View raw message