velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cort Schaefer <c...@xmission.com>
Subject RE: CPP like interface to Velocity
Date Sat, 14 Dec 2002 00:14:19 GMT
If you could use properties files instead of using the command like for
specifying your context objects, you might be able to use Texen out of the
box.

Cort

-----Original Message-----
From: Joshua.Levy@reasoning.com [mailto:Joshua.Levy@reasoning.com] 
Sent: Friday, December 13, 2002 4:58 PM
To: velocity-user@jakarta.apache.org
Subject: CPP like interface to Velocity


I was thinking of creating a simple velocity based
application, which could be used like a preprocessor.
Sort of like this:

java Preprocessor -Dfoo -DBAR=baz file.txt >file.htm

Internally, it would take file.txt as a template,
do a context.put("foo",new Boolean(true)) and a
context.put("BAR","baz") and write the result
to standard out.  

Does anyone know of such a thing already existing?
I'd love to reuse it.  

Joshua


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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message