- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::PlainPage
::xowiki::PlainPage create ... \
[ -render_adp (default "0") ]
Class Relations
::xo::db::CrClass create ::xowiki::PlainPage \ -superclass ::xowiki::PageMethods (to be applied on instances)
mime_type (setter)
ppage_id (setter)
render_adp (setter)
render_content (scripted)
set html ${:text} if {[:render_adp]} { set html [:adp_subst $html] } return [:substitute_markup $html]set_content (scripted)
set :text $textsubstitute_markup (scripted)
# # The provided text is a raw text that is transformed into HTML # markup for links etc. # [self class] instvar RE markupmap if {!${:do_substitutions}} { return $raw_content } set html "" try { if {$context_obj ne ""} { :set_resolve_context -package_id [$context_obj package_id] -parent_id [$context_obj item_id] } foreach l [split $raw_content \n] { set l [string map $markupmap(escape) $l] set l [:regsub_eval $RE(anchor) $l {:anchor "\1"}] set l [:regsub_eval $RE(div) $l {:div "\1"}] set l [:regsub_eval $RE(include) $l {:include_content "\1" ""}] #regsub -all -- $RE(clean) $l {\1} l set l [string map $markupmap(unescape) $l] append html $l \n } } on error {errorMsg} { error $errorMsg } finally { if {$context_obj ne ""} { :reset_resolve_context } } return $htmlunescape (scripted)
return $string
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables