NAME
HTML::Mason::Commands - Old Mason command reference
DESCRIPTION
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.
mc_abortbecomes$m->abortmc_auto_compbecomes$m->fetch_next->pathmc_auto_nextbecomes$m->call_nextmc_cachebecomes$m->cachemc_cache_selfbecomes$m->cache_selfmc_callerbecomes$m->callers(1)->pathmc_call_selfbecomes$m->call_selfmc_compbecomes$m->compmc_comp_existsbecomes$m->comp_existsmc_comp_source()becomes$m->current_comp->source_filemc_comp_source(path)becomes$m->fetch_comp(path)->source_file. This no longer works with nonexistent components as it used to.mc_comp_stackbecomesmap($_->title,$m->callers)mc_dategoes away, this was a legacy function. Replace by calling the date formatting function of your choice on$m->time.mc_dhandler_argbecomes$m->dhandler_argmc_filebecomes$m->filemc_file_rootbecomes$m->file_rootmc_outbecomes$m->outmc_timebecomes$m->timemc_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.
AUTHOR
Jonathan Swartz, swartz@pobox.com
SEE ALSO
HTML::Mason, HTML::Mason::Devel