Re: Converting Velocity
paul senescu <[email protected]>
| Newsgroups | gmane.comp.java.webmacro.user |
|---|---|
| Message-ID | <[email protected]> |
nothing really is influencing me... i just like the syntax of webmacro
alot more... of course this could be because i have be using it for such
a long time that i don't feel like taking the time to learn velocity...
in all honestly, i don't like the {} around variables... i know there
optional for velocity, but it looks too much like ant and i can just do
an XSLTransform on my ant build script if i wanted to do it that way...
But in reality, Velocity is a hack and was stolen from you guys, i don't
like working with thieves... true to the end!!! to add insult to injury
the Velocity developers didn't even take out all references to Webmacro
in the source code:
http://jakarta.apache.org/velocity/api/org/apache/velocity/Template.html
i like the .wm in the template code example...
you kydz are the creative thinkers behind this... Velocity is going to
always be a step behind...
I think that i am going to create a method that takes in a velocity
context, iterates over the objects, puts them into a webmacro context,
and returns the webmacro context.... granted this is a bit pricey
however the quicker i move these guys to webmacro the faster velocity
will be out the door... ;-)
when its done, i'll forward it off... I'm working on embedding tomcat to
make a stand alone service right now and need to get to this method
later today... fun fun fun!!!!
cheers
paul
Lane Sharman wrote:
> Hi Paul,
>
> I would try to see if there is a pattern allowing you to replace old
> code with new code so that you can have a search and replace script.
> that way, the end product will be so much more maintainable.
>
> just out of curiousity: besides your influence, are there other factors
> forcing the change?
>
> -Lane
>
> paul senescu wrote:
>
>> hey guys -
>>
>> I have an opportunity to convert a Velocity Site to Webmacro. I
>> thought that i could do a simple type cast on the Velocity Context to
>> Webmacro but it doesn't work. Any thoughts/suggestions/snippets/docs
>> on how to start using webmacro instead of velocity using the existing
>> code base? Does someone have a wrapper class/method for this?
>>
>> cheers
>> paul
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
>> Tool for open source databases. Create drag-&-drop reports. Save time
>> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
>> _______________________________________________
>> Webmacro-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/webmacro-user
>>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Webmacro-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/webmacro-user
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl