You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Geir Magnusson Jr." <ge...@optonline.net> on 2003/10/26 13:19:48 UTC

Re: CPP like interface to Velocity

Added to powered-by

On Tuesday, December 17, 2002, at 09:05 PM, didge wrote:

> Folks,
>
> I've created a new sourceforge project for my preprocessor code.  
> Check it
> out at http://vpp.sourceforge.net.  I appreciate any and all 
> constructive
> feedback!  The source is included with the download.
>
> didge
>
>> -----Original Message-----
>> From: Bill Burton [mailto:billb@progress.com]
>> Sent: Monday, December 16, 2002 6:48 PM
>> To: Velocity Users List
>> Subject: Re: CPP like interface to Velocity
>>
>>
>> Hello,
>>
>> didge wrote:
>>> I'm right now in the process of getting a project approved on
>> sourceforge to
>>> host my code.  I'll update this list when it gets approved,
>> hopefully this
>>> will only take a day or to.
>>
>> Great!
>>
>>> Bill, I hadn't ever really looked at the FilterReader, it
>> seemed novel, so I
>>> implemented a FilterReader version, too.
>>
>> Cool!  Yeah, FilterReader is a new feature in Ant 1.5 I believe.
>>
>> -Bill
>>
>>> didge
>>>
>>>
>>>
>>>> -----Original Message-----
>>>> From: Bill Burton [mailto:billb@progress.com]
>>>> Sent: Monday, December 16, 2002 12:44 PM
>>>> To: Velocity Users List
>>>> Subject: Re: CPP like interface to Velocity
>>>>
>>>>
>>>> Hello,
>>>>
>>>> didge wrote:
>>>>
>>>>> I implemented a preprocessor using velocity as an ant task.  It
>>>>
>>>> allows you
>>>>
>>>>> to access properties defined on the command line as well as any ant
>>>>> properties you have set.  If you are interested, I will post the 
>>>>> code.
>>>>
>>>> Yes, that sounds useful.
>>>>
>>>> Another idea is to implement an Ant FilterReader.  Then you can pre 
>>>> or
>>>> post process the generated output and also have all the power of the
>>>> <copy> task including mappers, etc.  See
>>>> http://jakarta.apache.org/ant/manual/CoreTypes/filterchain.html for 
>>>> more
>>>> info.
>>>>
>>>> -Bill
>>>>
>>>>
>>>>> didge
>>>>>
>>>>>
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Cort Schaefer [mailto:cort@xmission.com]
>>>>>> Sent: Friday, December 13, 2002 4:14 PM
>>>>>> To: 'Velocity Users List'
>>>>>> Subject: RE: CPP like interface to Velocity
>>>>>>
>>>>>>
>>>>>> 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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
>
>
-- 
Geir Magnusson Jr                                   203-247-1713(m)
geirm@optonline.net


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