Re: Any plans for a 100% wm syntax compatibility?
Demetrios Kyriakis <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Jonathan Revusky-3 wrote: > > I have a first pass written now. I mostly did this as a > technical challenge. I was curious to see how hard it is. (Answer: not > very hard, I don't think.) > Wow, ... I'm speachless. Jonathan Revusky-3 wrote: > > Since you're asking for this, I think there are a couple of things you > should be willing to do. > > (1) Do some testing. (Ideally even write some unit testcases.) > Of course. I'll try my best. Jonathan Revusky-3 wrote: > > (2) When it's fairly polished, announce it on the Velocity list. (I'm > tired of talking to those people...) > Of course, even more: if it works I'm going to write some blog posts about it and submit them everywhere (dzone, TSS, javaworld, etc.) :). Jonathan Revusky-3 wrote: > > The VelBridgeTemplateCache is a trivial subclass of the regular > TemplateCache that will load templates using the velocity parsing > machinery IF the template's name ends in .vm OR .vtl. Otherwise, it > behaves normally, just loading in freemarker templates. So, any files > you test have to end in .vm or .vtl. This means that it parses it using > Velocity, and then walks the Velocity tree and produces a FreeMarker > tree. Then merging is done with the FreeMarker engine. > I understand. In most Velocity applications I've seen, the extension was not relevant and not enforcing (and was mostly suggesting the "original" or destination file type like .htm, .report or .mail ). Jonathan Revusky-3 wrote: > > Anyway, you asked for this, so I think you should test it out now. > Thank you very much. Testing this will be my next activity. I wouldn't have even dreamed such a fast code release :) . Demetrios. -- View this message in context: http://www.nabble.com/Any-plans-for-a-100--wm-syntax-compatibility--tp16197027p16265519.html Sent from the freemarker-user mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/