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.