On 10/16/2012 09:56 AM, Vincent Massol wrote:
Hi devs,

Just realized that we don't have direct way of getting a page's content (only 
the content)…

The best we can do is:
http://playground.xwiki.org/xwiki/bin/view/Sandbox/WebHome?xpage=plain&outputSyntax=xwiki

But that converts the content to XWiki Syntax.

Shouldn't we have a vm for just displaying the content? Or even better a REST 
URL?

http://www.xwiki.org/xwiki/bin/view/Main/WebHome?xpage=plain&raw=2

xpage=plain.vm has three modes, the normal one returns the rendered content, raw=1 returns the code, but XML-escaped with the HTML MIME type, and raw=2 returns the raw code with the text/plain MIME type.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to