Embperl

 view release on metacpan or  search on metacpan

Config.pod  view on Meta::CPAN


Normally, if there is a value defined in %fdat for a specific input field, Embperl
will output a hidden input element for it when you use B<hidden>. When this option
is set, Embperl will not output a hidden input element for this field when the
value is a blank string.


=item optKeepSpaces = 1048576 (only 1.2b5 and above) 	       = 0x100000,

Disable the removal of spaces and empty lines from the output. This is useful
for sources other than HTML.

=item optChdirToSource = 0x10000000 (only 2.5 and above) 

Change current working directory to the directory of the sourcefile,
before executing the source.

=back



=head2 Embperl_Escmode

=over

=item Env:

EMBPERL_ESCMODE

=item Method:

$component -> config -> escmode 

=item Default:

7

=back


Turn HTML and URL escaping on and off. 

NOTE: If you want to output binary data, you must set the escmode
to zero.

For convenience you can change the escmode inside a page by setting 
the variable C<$escmode>.


=over 4

=item escXML = 8 (or 15) (2.0b4 and above)

The result of a Perl expression is always XML-escaped (e.g., `>'
becomes `&gt;' and ' become &apos;).

=item escUrl + escHtml = 3 (or 7)

The result of a Perl expression is HTML-escaped (e.g., `>' becomes
`&gt;') in normal text and URL-escaped (e.g., `&' becomes `%26')
within of C<A>, C<EMBED>, C<IMG>, C<IFRAME>, C<FRAME> and C<LAYER> tags.

=item escUrl = 2 (or 6)

The result of a Perl expression is always URL-escaped (e.g., `&'
becomes `%26').

=item escHtml = 1 (or 5)

The result of a Perl expression is always HTML-escaped (e.g., `>'
becomes `&gt;').

=item escNode = 0

No escaping takes place.

=item escEscape = 4

If you add this value to the above Embperl will always perform the
escaping. Without it is possible to disable escaping by preceding the item that
normally is escaped with a backslash. While this is a handy thing, it could
be very dangerous in situations, where content that is inserted by some
user is redisplayed, because they can enter arbitrary HTML and precede them
with a backslash to avoid correct escaping when their input is redisplayed
again.

=back

NOTE: You can localize $escmode inside a [+ +] block, e.g. to turn escaping
temporary off and output C<$data> write

    [+ do { local $escmode = 0 ; $data } +]


=head2 Embperl_Input_Escmode

=over

=item Env:

EMBPERL_INPUT_ESCMODE

=item Method:

$component -> config -> input_escmode I<[read only]>

=item Default:

0 

=item Since:

2.0b6

=back


Tells Embperl how to handle escape sequences that are found in the source.

=over 



( run in 1.320 second using v1.01-cache-2.11-cpan-71847e10f99 )