a::Dumper::Indent=1;
use HTML::Entities qw(decode_entities encode_entities);
use CGI::Simple;
use JSON;
use Cwd qw(getcwd);
# Inherit from the Compile module, not loaded until needed though.
#
@ISA
" tags
#
%CGI_TAG_WEBDYNE=map {$_ => 1} (
'block',
'perl',
'subst',
'dump',
'json',
'api',
'include',
'htmx'
);
# Var to hold package wide hash, for data shared ac
}
else {
# html/text/json must be a param
#
my $html_sr=$param_hr->{'html'} || $param_hr->{'text'} || $param_hr->{'json'} ||
return err('no data suppl
rt_multipart_form
end_multipart_form
isindex
dump
include
json
));
# Update - get from CGI module, add special dump tag
#
#%CGI_TAG_IMPLICIT=map {$_ => 1} (
++} qw(
perl
script
style
start_html
end_html
include
div
api
json
htmx
table
);
# Nullify Entities encode & decode
#
*HTML::Entities::encode=sub { };
*H
reate a .psp file with no leading start_html
#
map { $HTML::Tagset::isBodyElement{$_}++ } qw(htmx json dump);
# And that we also block <p> tag closures
#
push @HTML::Tagset::p_closure_barriers, key
As above
#
WEBDYNE_CONTENT_TYPE_TEXT => 'text/plain',
WEBDYNE_CONTENT_TYPE_JSON => 'application/json',
# Script types which are executable so we won't subst strings in them
t mode - recompile loaded modules
#
WEBDYNE_RELOAD => 0,
# Use JSON canonical mode ?
#
WEBDYNE_JSON_CANONICAL => 1,
# Enable the API mode ?
#
WEBDYNE_API_
f',
'css' => 'text/css',
'js' => 'application/javascript',
'json' => 'application/json',
'pdf' => 'application/pdf',
'svg' => 'image/svg+xml'
},