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'},
>
> Embperl 1 used to expand hash/array in URL into query
> string like in href=[+ scalar { %fdat, id => 1 } +] but this
> doesn't seem to work in Embperl 2. Is this a known bug?
>
This still works. You might need to write
href="[+ scalar { %fdat, id => 1 } +]"
So Embperl is aware that the
> >
> >>> I'm trying simple
> >>> [- Execute('_ref.eo') -]
> >>
> >>
> >>
> >> In Embperl 2 you have to add a ';' in every statement in a
> [--] block
> >> and you have to omit it it [++] blocks.
> >
Normaly [- -] should also work without ; ([* *] blocks requires the ;).
>
> And just for the
>
> [- $fdat{'foo'} = '"> href="http://www.slashdot.org";>slashdot'; -] type="text" name="foo">
>
> This results in an empty text field followed by the given
> link to slashdot.
I just tested it and it works for me.
What you your setting of $escmode?
>
> I *guess* that regular expressions
>
> 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->