Name:
Resource
FullName:
Resource interface
URI:
IW:SuikaWiki:WikiResource
{
Name:
wikiform_input/res
FullName:
Get text from resource
Format:
$r = $o->resource ($p->{name},escape=>1);
}
{
Name:
wikiview/res
wikiview-resource/res
wikiview-resource-safe/res
wikipage_list_item/res
FullName:
Get text from resource
Note:
"safe" option is very dangerous (it can lead the XSS problems).
Be careful, in case using with world-readable resource database.
Format:
if ($p->{safe}) {
$r = $o->formatter('view-resource-safe')->replace ($o->resource ($p->{name}), $o);
} else {
$r = $o->formatter('view-resource')->replace ($o->resource ($p->{name}), $o);
}
}
{
Name:
wikiview-resource/-bare_text
FullName:
HTML escape for bare text
Format:
$r = $o->escape ($p->{-bare_text});
}
{
Name:
wikiview-resource/span
FullName:
Give class name
Format:
$r = qq() . $o->escape($p->{content}) . '';
}
POD:LICENSE:
Copyright 2002 Wakaba
%%GNUGPL2%%