> > I'm using embperl as a template engine in a non-mod_perl > context. I have embperl1 code like: > > $HTML::Embperl::dbgShowCleanup = 1; > HTML::Embperl::Execute ({ > 'debug' => 1, > 'escmode' => 0, > 'inputfile' => $ref->{'tpl_path'}, > 'options' => HTML::Embperl::optDisableHtmlScan () > | HTML::Embperl::optDisableChdir () > | HTML::Embperl::optKeepSpaces () > | HTML::Embperl::optRawInput () > | HTML::Embperl::optDisableEmbperlErrorPage (), > 'output' => \$line, > 'param' => $ref->{'parameters'}, > }); > > and I want to rewrite it to work with Embperl2. I haven't > been able to figure out how to get at the constants.
The Constant now live in Embperl::Constant, so replace HTML::Embperl::optKeepSpaces With Embperl::Constant::optKeepSpaces The optDisableHtmlScan, is no longer an option, instead change the syntax, by passing syntax => EmbperlBlocks optRawInput is on by default, but is now set with input_escmode => 0 > Also > still looking for the mapping from the documented environment > variables of the form EMBPERL_* to hash keys for > Embperl::Execute. perldoc Config.pod Will show you the env vars, the excute parameters and the method names to access it in the page Gerald --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]