WebDyne
view release on metacpan or search on metacpan
lib/WebDyne/Constant.pm view on Meta::CPAN
# Expand CGI parameters found in CGI values, e.g. button with submit=1&name=2 will get those
# CGI params set.
#
WEBDYNE_CGI_PARAM_EXPAND => 1,
# Disable CGI autoescape of form fields ?
#
WEBDYNE_CGI_AUTOESCAPE => 0,
# Error handling. Use text errors rather than HTML ?
#
WEBDYNE_ERROR_TEXT => 0,
# Show errors ? Extended shows additional information with granularity as per following
# section.
#
WEBDYNE_ERROR_SHOW => 1,
WEBDYNE_ERROR_SHOW_EXTENDED => 0,
# Show error, source file context, number of lines pre and post. Only applicable
# for extended + HTML error output.
#
WEBDYNE_ERROR_SOURCE_CONTEXT_SHOW => 1,
WEBDYNE_ERROR_SOURCE_CONTEXT_LINES_PRE => 4,
WEBDYNE_ERROR_SOURCE_CONTEXT_LINES_POST => 4,
# Max length of source line to show in ouput. 0 for unlimited.
WEBDYNE_ERROR_SOURCE_CONTEXT_LINE_FRAGMENT_MAX => 80,
# Show filename (FULL for full filesystem path)
WEBDYNE_ERROR_SOURCE_FILENAME_SHOW => 1,
WEBDYNE_ERROR_SOURCE_FILENAME_FULL => 0,
# Show backtrace, show full or brief backtrace
WEBDYNE_ERROR_BACKTRACE_SHOW => 1,
WEBDYNE_ERROR_BACKTRACE_SHORT => 0,
# Skip (eval) and __ANON__ methods unless set to 1
WEBDYNE_ERROR_BACKTRACE_FULL => 0,
# Show eval trace. Uses SOURCE_CONTEXT_LINES to determine number of lines to show
WEBDYNE_ERROR_EVAL_CONTEXT_SHOW => 1,
# CGI and other info
WEBDYNE_ERROR_CGI_PARAM_SHOW => 1,
WEBDYNE_ERROR_ENV_SHOW => 1,
WEBDYNE_ERROR_WEBDYNE_CONSTANT_SHOW => 1,
# URI and version
WEBDYNE_ERROR_URI_SHOW => 1,
WEBDYNE_ERROR_VERSION_SHOW => 1,
WEBDYNE_ERROR_INTERNAL_SHOW => 0,
# Internal indexes for error eval handler array
#
#WEBDYNE_ERROR_EVAL_TEXT_IX => 0,
#WEBDYNE_ERROR_EVAL_EMBEDDED_IX => 1,
#WEBDYNE_ERROR_EVAL_LINE_NO_IX => 2,
# Alternate error message if WEBDYNE_ERROR_SHOW disabled
#
WEBDYNE_ERROR_SHOW_ALTERNATE =>
'error display disabled - enable WEBDYNE_ERROR_SHOW to show errors, or review web server error log.',
# Default title
#
WEBDYNE_HTML_DEFAULT_TITLE => 'Untitled Document',
# HTML Tiny mode, XML or HTML
#
WEBDYNE_HTML_TINY_MODE => 'html',
# Development mode - recompile loaded modules
#
WEBDYNE_RELOAD => 0,
# Use JSON canonical. pretty mode ?
#
WEBDYNE_JSON_CANONICAL => 1,
WEBDYNE_JSON_PRETTY => 0,
# Enable the API mode ?
#
WEBDYNE_API_ENABLE => 1,
# Enable Alpine/Vue hack
#
WEBDYNE_ALPINE_VUE_ATTRIBUTE_HACK_ENABLE => 'x-on',
# Request headers for HTMX and Alpine Ajax
#
WEBDYNE_HTTP_HEADER_AJAX_HR => { map { $_=> 1} @{$_=[qw(
hx-request
x-alpine-request
)]}},
WEBDYNE_HTTP_HEADER_AJAX_AR => $_,
# Force run of <htmx> tag even if no hx-request header
#
WEBDYNE_HTMX_FORCE => 0,
# Headers
#
WEBDYNE_HTTP_HEADER => {
#'Content-Type' => sprintf('%s; charset=%s', @constant_temp{qw(webdyne_content_type_html webdyne_html_charset)}),
'Content-Type' => $constant_temp{'webdyne_content_type_html_encoded'},
'Cache-Control' => 'no-cache, no-store, must-revalidate',
( run in 0.700 second using v1.01-cache-2.11-cpan-2c0d6866c4f )