On Fri, Jan 15, 2010 at 10:14, Caleb James DeLisle
<[email protected]> 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
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Thomas Mortagne
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to