Re: [Rest2web-develop] nested macros
Brought to you by:
mjfoord
From: Michael F. <fuz...@vo...> - 2006-08-05 15:34:41
|
martin f krafft wrote: > Check out http://martin-krafft.net/phd/ and hover over one of the > terms with a dotted underline. This is very nice. :-) > This is a simple CSS trick actually, > but I use a macro to make it happen: > > {defn;method;Method;a definition} > > This will turn into "method", which is a <span> that if hovered over > will produce a popup defining "Method" with "a definition". CSS > then makes it work. > > Now what I'd really like is to be able to use popups within popups, > like the definition of "Method" in the first paragraph of the above > page. > > So I tried: > > {defn;method;Method;use of {defn;tools;Tool;a definition}} > > but rest2web does not seem to support this at all. > > Any chance this could be implemented? > > Macros are the work of Hans Nowak and implemented in 'textmacros.py'. Nested inline macros are *not* possible, but there is another syntax that I think may work. I'm not sure if you can pass arguments this way : {+macrostart} some text {+macrostart} nested text {-macrostart}{-macrostart} See the 'coloring' macro for an example. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > |