On Fri, Jan 15, 2010 at 10:14, Caleb James DeLisle
<calebdelisle(a)lavabit.com> wrote:
Is this wrong?
The test case is:
create a document, put this in it:
{{html}}
<i>italics</i>
{{/html}}
create another document, put in it:
{{velocity}}
#includeInContext("Test.FirstDocument")
{{/velocity}}
view and observe result:
<p><em>italics</em></p>
html is escaped.
I think the problem (if this is considered a problem) is that #includeInContext
(or #includeForm) returns a String so the content is parsed twice.
#includeInContext (same for all others #include*) does not include
content, it include rendered version of the targeted document. It as
been made on purpose AFAIK (even if i don't like it either since it
causes lots of escaping/verbatim issues in xwiki/1.0 syntax).
Caleb James DeLisle
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne