4.19. default

4.19.1. Summary

Parameters: name default

Positional parameters in same order.

The attribute hash reference is passed to the subroutine after the parameters as the last argument. This may mean that there are parameters not shown here.

Must pass named parameter interpolate=1 to cause interpolation.

Invalidates cache: YES

Called Routine:

ASP-like Perl call:

         name => VALUE,
         default => VALUE,


    $Tag->default($name, $default, $ATTRHASH);
    [default name default other_named_attributes]
Parameters Description Default
Attributes Default
interpolate (reparse) No
Invalidates cache YES
Container tag No
Has Subtags No
Nests Yes

Tag expansion example:

    [default name default]
    TODO: (tag result)

ASP-like Perl call:

   $Tag->default(  { default => VALUE_default
                      name => VALUE_name
}, $body  );

or similarly with positional parameters,

    $Tag->default(name,default, $attribute_hash_reference, $body);

4.19.2. Description

Returns the value of the user form variable variable if it is non-empty. Otherwise returns default, which is the string "default" if there is no default supplied. Got that? This tag is DEPRECATED anyway. default name