When the template file interpreter encounters an <al-include> during execution it loads and executes the specified template file.
You can specify the name of the included template file by name using the name attribute or by expression using the expr attribute.
For example:
>>> open('here.html', 'w').write('ere i am') >>> open('jh.html', 'w').write(' jh') >>> import albatross >>> ctx = albatross.SimpleContext('.') >>> ctx.locals.name = 'jh.html' >>> albatross.Template(ctx, '<magic>', ''' ... <al-include name="here.html"> ... <al-include expr="name" whitespace> ... ''').to_html(ctx) >>> ctx.flush_content() ere i am jh