| PApp documentation | Contained in the PApp distribution. |
PApp::Preprocessor - preprocess source like "pxml"
use PApp::Preprocessor; :><html><title><?localtime:></title><:...
Importing this module preprocesses perl source files using pxml2pcode
(see PApp::PCode), using a source filter.
Preprocessing is only one part of papp processing - %S, translations
and others need to be imported/initialized seperately.
After use PApp::Preprocessor, the source is still in perl mode, but can
be switched to literal text mode using :>, and switched back to perl using
<:.
Marc Lehmann <schmorp@schmorp.de> http://home.schmorp.de/
| PApp documentation | Contained in the PApp distribution. |
########################################################################## ## All portions of this code are copyright (c) 2003,2004 nethype GmbH ## ########################################################################## ## Using, reading, modifying or copying this code requires a LICENSE ## ## from nethype GmbH, Franz-Werfel-Str. 11, 74078 Heilbronn, ## ## Germany. If you happen to have questions, feel free to contact us at ## ## license@nethype.de. ## ##########################################################################
package PApp::Preprocessor; $VERSION = 1.45; use PApp::PCode (); use PApp::Util (); sub import { PApp::Util::filter_add PApp::Util::filter_simple { $_ = PApp::PCode::pcode2perl PApp::PCode::pxml2pcode "<:$_"; }; } 1;