Re: Desired Features in FreeMarker
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Thursday, January 17, 2008, 10:48:24 PM, Attila Szegedi wrote: [snip] >> 3. Is it possible to change how HTML is parsed so you can override or >> customize the [a href=""/] tag? The current compiler does this and >> it allows >> more fine-grained control over template processing without requiring >> new >> macros to be called. > > FreeMarker doesn't parse HTML. I'm not sure I understand this question. I call it HTML automation. Sometimes you have directives like <@img src="..." />, <@form action="..."></@a>, etc, that just generate the corresponding HTML elements, but with some automated checks or something. And then sometimes you will find it nice to allow the template authors to use plain HTML, and the TemplateLoader replace the elements with the directive calls. Unfortunately FTL bleeds at a few points regarding template preprocessing, most importantly it doesn't support error location mapping. -- Best regards, Daniel Dekany ------------------------------------------------------------------------- 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/