5.2.1.1 action="..." attribute
Description: action=
Keywords: albatross

###
5.2.1.1 `action="..."` attribute

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" />
    <input type="hidden" name="__albform__" value="eJxrnTQ/W04z1kSoel9c44IfLrWFjKEseYm5qYVM3gzFegDFhQtI
    " />
    </form>

    <form action="http://there.com/">
     <input type="text" name="name" />
    <input type="hidden" name="__albform__" value="eJxrnTQ/W04z1kSoel9c44IfLrWFjKEseYm5qYVM3gzFegDFhQtI
    " />
    </form>

Note that the generated `action` attribute is relative to the document root.