HTML::Mason::Tools - Function library used internally in Mason
This module contains exportable functions that are intended to be used by other Mason modules.
The documentation here is primarily intended to be used by Mason core developers.
Others who choose to use these functions do so at their own risk, as they may change from release to release. You have been warned.
Given a module name, this function attempts to load it. It takes an additional boolean parameter indicating whether or not to throw an exception if the module cannot be found. By default, if the module cannot be found, this function simply returns false.
All errors generate exceptions no matter what.
If the module is loaded successfully, this function returns true.
Given a scalar, which may be a reference, this function attempts to return an array. It throws an HTML::Mason::Exception::Params exception if this can't be done.
This function is called from the generated component code as part of a component's argument handling.
Given a scalar, which may be a reference, this function attempts to return a hash. It throws an HTML::Mason::Exception::Params exception if this can't be done.
This function is called from the generated component code as part of a component's argument handling.