5.2.7 <al-img>

When you use this tag you must supply an expr attribute containing an expression that will be used to generate the output src attribute of the <img> tag.

For example:

>>> import albatross
>>> ctx = albatross.SimpleContext('.')
>>> ctx.locals.src = 'httpicons.r.us/spam.png'
>>> albatross.Template(ctx, '<magic>', '''
... <al-img expr="src" whitespace>
... ''').to_html(ctx)
>>> ctx.flush_content()
<img src="httpicons.r.us/spam.png">