Wang Ning wrote:
>> Also there could be a macro to integrate the
>> HTML conversion in the middle of the page. Similar to {attach} but would
>> embed the document directly in the page. So you should make sure your
>> API allows to not only convert to wiki but also to any format.
>
> Yes, this kind of api is my first thought and I implement it. The problem is
> that, if I use the {import: test.doc} to insert the html code of conversion
> to the page, the conversion method will be *invoked everytime* when the page
> refresh. How to deal with this problem.
> I have not develop a macro but I think I can do it. Can you give me some
> sample?
>
You can look at com.xpn.xwiki.plugin.charts.ChartingMacro,
com.xpn.xwiki.plugin.graphviz.GraphVizMacro and
com.xpn.xwiki.plugin.svg.SVGMacro (they also contain caching code).
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs