velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claude Brisson" <cla...@savoirweb.com>
Subject Re: Formatting the HTML before sending it to the browser...
Date Wed, 20 Nov 2002 00:50:31 GMT
Don't forget the difference between a templating language and a scripting language...

php, as javascript, is a scripting language
velocity is a templating language

back to the tabs and extra space problem... it is a real concern, that I hope will be addressed
in future released.

You can try to use this little TrimWriter I wrote, that solved my formatting problems.
It is really a quick and dirty coded class, but it works and can help someone.
It removes \t and replace \n\n by \n.
To use it, just redirect velocity output towards a "new TrimWriter(original writer)."

CloD

----- Original Message ----- 
From: "Devon" <Devon@darksideproductions.net>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: mercredi 20 novembre 2002 01:29
Subject: RE: Formatting the HTML before sending it to the browser...


I noticed the same problem. Velocity seems to lack the facility for
delimiting velocity code from html (like php's <??>) and also lacks
methods for inserting literal html into a document from within velocity
code (php's echo 'blah'). - or is there away? -dcb

-----Original Message-----
From: Rodrigo Reyes [mailto:rodrigo@instaservi.com]
Sent: Tuesday, November 19, 2002 12:11 PM
To: velocity-user@jakarta.apache.org
Subject: Formating the HTML before sending it to the browser...


Hi
    Is there any way to have the HTML formatted before it is sent to the
browser? Velocity "wrecks" the code, making very hard to understand it
at
debigging time. Is there anyway to have the extra spaces and tabs erased
from every generated HTML once a system developing stage has finished?
Thanx...

Rodrigo



--
To unsubscribe, e-mail:
<mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:velocity-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>




Mime
View raw message