>>> import albatross
>>> text = '''<al-macro name="doc">
... <html>
...  <head>
...   <title>Simple Content Management - <al-usearg name="title"></title>
...  </head>
...  <body>
...   <h1>Simple Content Management - <al-usearg name="title"></h1>
...   <hr noshade>
...   <al-usearg>
...  </body>
... </html>
... </al-macro>
... '''
>>> ctx = albatross.SimpleContext('.')
>>> templ = albatross.Template(ctx, '<magic>', text)
>>> templ.to_html(ctx)
>>> text = '''<al-expand name="doc">
... <al-setarg name="title">hello</al-setarg>
... </al-expand>
... '''
>>> expand = albatross.Template(ctx, '<magic>', text)
>>> ctx.push_content_trap()
>>> expand.to_html(ctx)
>>> result = ctx.pop_content_trap()
>>> print result
<html>
 <head>
  <title>Simple Content Management - hello</title>
 </head>
 <body>
  <h1>Simple Content Management - hello</h1>
  <hr noshade>
  </body>
</html>

