If you do not supply an action attribute the tag will generate one with based on the value returned by the current_url() method of the execution context.
>>> import albatross >>> from fakeapp import ctx >>> albatross.Template(ctx, '<magic>', ''' ... <al-form whitespace> ... <al-input type="text" name="name" whitespace> ... </al-form whitespace> ... ... <al-form action="http://there.com/" whitespace> ... <al-input type="text" name="name" whitespace> ... </al-form whitespace> ... ''').to_html(ctx) >>> ctx.flush_content() <form action="/fakeapp.py"> <input type="text" name="name" /> <div><input type="hidden" name="__albform__" value="eJwz52L++VK28bHSAatzCy4Zv2lgqi1kDGXJS8xNLWTyZijWAwDziAzt " /></div> </form> <form action="http://there.com/"> <input type="text" name="name" /> <div><input type="hidden" name="__albform__" value="eJwz52L++VK28bHSAatzCy4Zv2lgqi1kDGXJS8xNLWTyZijWAwDziAzt " /></div> </form>
Note that the generated action attribute is relative to the document root.