WebDyne

 view release on metacpan or  search on metacpan

doc/webdyne.md  view on Meta::CPAN

        $WebDyne::WEBDYNE_ERROR_SHOW_EXTENDED=1;

        #  Extended error control.
        #
        #  $WebDyne::WEBDYNE_ERROR_SOURCE_CONTEXT_SHOW=1;
        #  $WebDyne::WEBDYNE_ERROR_SOURCE_CONTEXT_LINES_PRE=4;
        #  $WebDyne::WEBDYNE_ERROR_SOURCE_CONTEXT_LINES_POST=4;

### Constants Reference

The following constants can be altered to change the behaviour of the
WebDyne package. All these constants reside in the
[`WebDyne::Constant`](https://github.com/aspeer/WebDyne/blob/main/lib/WebDyne/Constant.pm)
package namespace.

`$WEBDYNE_CACHE_DN`

:   The name of the directory that will hold partially compiled WebDyne
    cache files. Must exist and be writable by the Apache process

`$WEBDYNE_STARTUP_CACHE_FLUSH`

:   Remove all existing disk cache files at Apache startup. 1=yes
    (default), 0=no. By default all disk cache files are removed at
    startup, and thus pages must be recompiled again the first time they
    are viewed. If you set this to 0 (no) then disk cache files will be
    saved between startups and pages will not need to be re-compiled if
    Apache is restarted.

`$WEBDYNE_CACHE_CHECK_FREQ`

:   Check the memory cache after this many request (per-process
    counter). default=256. After this many requests a housekeeping
    function will check compiled pages that are stored in memory and
    remove old ones according to the criteria below.

`$WEBDYNE_CACHE_HIGH_WATER`

:   Remove compiled from pages from memory when we have more than this
    many. default=64

`$WEBDYNE_CACHE_LOW_WATER`

:   After reaching HIGH_WATER delete until we get down to this amount.
    default=32

`$WEBDYNE_CACHE_CLEAN_METHOD`

:   Clean algorithm. default=1, means least used cleaned first, 0 means
    oldest last view cleaned first

`$WEBDYNE_EVAL_SAFE`

:   default=0 (no), If set to 1 means eval in a Safe.pm container.
    Evaluating code in a Safe container is experimental and not
    supported or recommended for general WebDyne use.

`$WEBDYNE_EVAL_SAFE_OPCODE_AR`

:   The opcode set to use in Safe.pm evals (see the Safe man page).
    Defaults to "\[':default'\]". Use \[&Opcode::full_opset()\] for the
    full opset. CAUTION Use of WebDyne with Safe.pm not comprehensively
    tested and considered experimental.

`$WEBDYNE_EVAL_USE_STRICT`

:   The string to use before each eval. Defaults to "use strict
    qw(vars);". Set to undef if you do not want strict.pm. In Safe mode
    this becomes a flag only - set undef for "no strict", and non-undef
    for "use strict" equivalence in a Safe mode (checked under Perl
    5.8.6 only, results in earlier versions of Perl may vary).

`$WEBDYNE_STRICT_VARS`

:   Check if a var is declared in a render block (e.g \$ {foo}) but not
    supplied as a render parameter. If so will throw an error. Set to 0
    to ignore. default=1

`$WEBDYNE_DUMP_FLAG`

:   If 1, any instance of the special <dump\> tag will print out
    results from CGI-\>dump(). Use when debugging forms. default=0

`$WEBDYNE_DTD`

:   The DTD to place at the top of a rendered page. Defaults to:
    <!DOCTYPE html\>

`$WEBDYNE_HTML_PARAM`

:   attributes for the <html\> tag, default is { lang =\>'en' }

`$WEBDYNE_HEAD_INSERT`

:   Any HTML you want inserted before the closing </head\> tag, e.g.
    stylesheet or script includes to be added to every `PSP` page. Must
    be valid HTML <head\> directives, not interpreted or compiled by
    WebDyne, incorporated as-is

`$WEBDYNE_COMPILE_IGNORE_WHITESPACE`

:   Ignore source file whitespace as per HTML::TreeBuilder
    ignore_ignorable_whitespace function. Defaults to 1

`$WEBDYNE_COMPILE_NO_SPACE_COMPACTING`

:   Do not compact source file whitespace as per HTML::TreeBuilder
    no_space_compacting function. Defaults to 0

`$WEBDYNE_STORE_COMMENTS`

:   By default comments are not rendered. Set to 1 to store and display
    comments from source files. Defaults to 0

`$WEBDYNE_DELAYED_BLOCK_RENDER`

:   By default WebDyne will render blocks targeted by a render_block()
    call, even those that are outside the originating
    <perl\>..</perl\> section that made the call. Set to 0 to not
    render such blocks. Defaults to 1

`$WEBDYNE_WARNINGS_FATAL`



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