Hi Erik, > be the right choice there. For the others, couldn't it expand into a > 'class=' or 'id=' within the tag? So, > > x{myStyle > /{This is the text} > } > > would expand to, > > <span class=myStyle><i>This is the text</i></span> > > > and > > x{myStyle > 1{This is the header} > } > > would become, > > <h1 class=myStyle>This is the header</h1> > > > Maybe this makes it more makes it more complicated than it needs to
This looks like a very good idea! Perhaps it is not complicated at all, if we utilize the '*Style' mechanism from @lib/xthml.l, which propagates down through the tag functions via 'dfltCss'. It is worth to be investigated more deeply! > How about '$'? It's kind of an 'S' for "Style", and also the dollar > sign might imply that you're putting some "Bling" on your document :D > > ${superFly > This text is /{super} fly! > } Another very good idea! :) > Anyway, the reason I ask about this... with such a mechanism, I could > (re)create the styled homepage entirely within the wiki structure. This Cool! > As far as implementation goes, we would just need to add a clause to > the 'render' function in 'wiki/lib.l', right? Something like > > ("$" # Style > (let Cls (till ... T) # get CSS class(es) > (prin "<span class=\"" Cls "\">") > (recurse T) # render the rest > (prin "</span>") ) ) Or, if we go with the above '*Style' / 'dfltCss', it would simply call the function 'style'. ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe