I was messing around with the HTML::Template::wfXML filter that I'm developing, performing some potentially useless optimizations by swapping s///g with a m//gc scanner implementation and came up with a bizarre and wonderful side-effect. I can make TMPL_VAR ignore any content between its opening and closing tags! This means that:
<tmpl:var name="foo">Skip this!</tmpl:var> will show up in a WYSIWYG editor, but is replaced by: <TMPL_VAR name="foo"> before being passed on to H:T. Similarly, the tmpl:attribute extension replaces any placeholders in the element in which it resides: <img src="sample.png" width="320" height-"240" tmpl:attribute="src my_image; width w; height h" /> is replaced by: <img src="<TMPL_VAR my_image>" width="<TMPL_VAR w>" height="<TMPL_VAR h>" /> I have tried templates using this syntax in GoLive 5.0, and after adding the elements to the Web Settings/HTML tab I am able to edit the document with placeholder content, save changes, and still wind up with a working template. Zope PageTemplates, watch out! The tmpl:var functionality is currently in place and tested; I'm still tweaking tmpl:attribute. I will post the module to SourceForge as soon as it's done. Best Wishes, Kurt Stephens --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
