Re: XDocReport, IDE support (Was: Re: Anybody with deeper OSGi bundle can comment on freemarker.jar OSGification?)
Daniel Dekany <[email protected]> Mon, 3 Jun 2013 17:41:56 +0200
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
Monday, June 3, 2013, 2:29:45 PM, Angelo zerr wrote:
[snip]
>> For example, what happens if the users enters `x && y`? Won't Word/OO
>> corrupt that to `x && y`?
>
> Yes you are right. To fix this problem, XDocReport preprocess each
> XML entries to transform `x && y` to `x && y`
> before loading it in the Freemarker Template.
You mean it already does that. (I suppose it's smart enough to do it
only inside the FreeMarker directives and interpolations or else it
would corrupt the XML.)
[snip]
> It must create a field to enter an interpolation or directive. Why?
> Because docx and odt doesn't escape the typed content that you set in a field.
You said you un-escape the FTL parts, so what do you mean by
"escaped"? From use perspective it's maybe needless complication,
creating a field, and then also delimit its content with ${...}. I
don't want to be difficult here, just trying to figure out what would
be needed for this on FreeMarker's side, if anything...
> If you are interested, you can play with our online demo
> http://xdocreport.opensagres.cloudbees.net/index.jsp
[snip]
>> Of course, starting from 2.3.20, the Maven artifact will be an OSGi
>> bundle.
>>
> Great! We will switch to it.
(I have almost renamed DollarVariable to DollarInterpolation, it being
a non-public class. Then after I saw that code earlier, I have
realized it would break XDocReport... and who knows what else.)
>> He has also gave up on FreeCC as far as I know. But I suppose it can
>> be implemented with JavaCC too.
>
> Perhaps, but the question is who can do that?
There's a high chance that *if* anyone will do that, that will be me.
Although I have to say that I don't know yet how difficult that will
be...
>> An other idea that I had had, is to manage Freemarker with
>> CodeMirro( Javascript editor which manages any mode). I have works a
>> lot with CodeMirror for completion and syntax error.
Of course, anything that (properly) supports FreeMarker is a good
thing as far as I'm concerned...
>> For instance you can find sample with Velocity
>> http://codemirror-java.opensagres.cloudbees.net/velocity.html the
>> syntax error is managed on server side. We could do the same thing
>> BTW, does Velocity have an error-tolerant AST builder?
>
> I think it's the same problem than Freemarker. You can see it in my
> demo http://codemirror-java.opensagres.cloudbees.net/velocity.html
> The editor displays just one error even (the first found error) even if they are several errors.
I think that's alone isn't a that big issue. The user can fix the
errors as they pop up, until there's none, and that's it. So is this
really a blocking issue for the DLTK-based plugin?
--
Thanks,
Daniel Dekany
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2