On Apr 14, 2009, at 5:55 PM, Thomas Mortagne wrote: > On Tue, Apr 14, 2009 at 17:47, Andreas Schaefer <schaef...@me.com> > wrote: >> Hi Vincent >> >> I am still not able to work this out. I have this Wiki Snippet on a >> page: >> >> {{html}}{{velocity}}#info("The IBOutlet classifier can be moved to >> the >> property definition if you like"){{/velocity}}{{/html}} > > Actually you should use > {{velocity}}{{html}}#info("The IBOutlet classifier can be moved to the > property definition if you like"){{/html}}{{/velocity}} > to execute velocity code before html.
Right my mistake... I guess users will make this mistake quite often too ;) The outer macro is always executed first. Thanks -Vincent > By defaut {{html}} only expect html content so it will not execute > wiki content likes macros? > >> >> and it generates this HTML code: >> >> <!--stopmacro--><!--startmacro:html|-||-|{{velocity}}#info("The >> IBOutlet classifier can be moved to the property definition if you >> like"){{/velocity}}--><p><p><div class="infomessage">The >> IBOutlet classifier can be moved to the property definition if you >> like</div></p></p><!--stopmacro--> >> >> which leads to entire text inside the paragraph to be printed out >> (including the div). >> >> I upgraded to 1.8.1 yesterday by just replacing the WAR file. >> >> Andreas Schaefer >> CEO of Madplanet.com Inc. >> andreas.schae...@madplanet.com >> schaef...@me.com >> >> On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote: >> >>> The velocity macros that were working for XWiki Syntax 1.0 still >>> work >>> for XWiki syntax 2.0 (provided you use them inside the {{velocity}} >>> macro). However most of them output HTML and in XWiki Syntax 2.0 you >>> need to surround any HTML block by the {{html}} macro so basically >>> you'll need to write: >>> >>> {{html}}{{velocity}}#warning("This is my warning to you"){{/ >>> velocity}} >>> {{/html}} >> >> ____________________ _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users