Class ::xowiki::LinkTemplate

::xowiki::LinkTemplate[i] create ... \
           [ -body_template body_template ] \
           [ -link_template link_template ] \
           [ -render_content (default "true") ]

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xotcl::Object[i]
::xotcl::Class create ::xowiki::LinkTemplate \
     -superclass ::xotcl::Object

Methods (to be applied on instances)

  • body_template (setter)

  • link_template (setter)

  • render (scripted)

    set result ""
    # this can be used into templates as id to safely attach event
    # handlers to elements
    set timed_id [clock microseconds]
    if {$with_link} {append result [subst [:link_template]]}
    if {$with_body} {append result [subst [:body_template]]}
    return $result
  • render_content (setter)