Class ::xowiki::includelet::decoration=edit

::xowiki::includelet::decoration=edit[i] create ...

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xotcl::Object[i]
::xotcl::Class create ::xowiki::includelet::decoration=edit \
     -superclass ::xotcl::Object

Methods (to be applied on instances)

  • render (scripted)

    set name       ${:name}
    set title      ${:title}
    set package_id ${:package_id}
    set class      [namespace tail [:info class]]
    set id         [expr {[info exists :id] ? "id='[:id]'" : ""}]
    set html       [next]
    set localized_title [::xo::localize $title]
    set edit_button [:include [list edit-item-button -book_mode true]]
    set link [expr {[string match "*:*" $name] ?
                    "<a href='[ns_quotehtml [::$package_id pretty_link -parent_id [::$package_id folder_id] $name]]'>[ns_quotehtml $localized_title]</a>" :
                    $localized_title}]
    return [subst [[self class] set template]]