[albatross-users] Trouble with custom tag

Gregory Bond gnb at itga.com.au
Mon Dec 29 14:46:46 EST 2003


This is the code I use in one of my custom tag classes, to do the Albatross
macro expansion in the "desc" string if needed:

            if desc.find("<al") >= 0:
                ctx.push_content_trap()
                Template(ctx, '<magic>', desc).to_html(ctx)
                desc = ctx.pop_content_trap()

>From memory, I grabbed this from some of the supplied Albatross tags.




More information about the Albatross-users mailing list