HTML::Mason::Commands - Old Mason command reference
This was the documentation for the
mc_ command set. In Mason 0.8 and beyond,
mc_ commands have been replaced by the new HTML::Mason::Request API. e.g.
mc_comp becomes $m->comp mc_file becomes $m->file etc.
Below is a description of how to convert your
mc_ commands to
$m methods. There is also a utility provided with the distribution, bin/convert0.8.pl, that performs these conversions for you. For backwards compatibility
mc_ commands still work for a limited time but will eventually go away.
$m->fetch_comp(path)->source_file. This no longer works with nonexistent components as it used to.
mc_dategoes away, this was a legacy function. Replace by calling the date formatting function of your choice on
mc_suppress_http_header(with or without argument) no longer has any effect and can simply be removed. See Devel/Sending HTTP Headers for more information.
Jonathan Swartz, email@example.com