>>> import albatross
>>> class Ctx(albatross.SimpleContext):
...     def current_url(self):
...         return 'magic'
...     def redirect_url(self, loc):
...         return 'here/%s' % loc
...
>>> ctx = Ctx('.')
>>> ctx.locals.name = 'eric'
>>> albatross.Template(ctx, '<magic>', '''
... <al-a expr="'login=%s' % name">Login</al-a whitespace>
... <al-a expr="'remote?login=%s' % name">Login</al-a whitespace>
... <al-a href="page">Login</al-a whitespace>
... ''').to_html(ctx)
>>> ctx.flush_content()
<a href="magic?login=eric">Login</a>
<a href="remote?login=eric">Login</a>
<a href="here/page">Login</a>
