Begin main content
Search · Index
No registered users in community s5-xowiki-tutorial
in last 10 minutes

Example for ::xowiki::Object

# -*- tcl-*-
# Small example for demonstrating an ::xowiki::Object
# When the prototype page is loaded, the object named
# CGI will be added to the XoWiki package

::xowiki::Object new -title "CGI" -text {
  proc content {} {
    return "Hello \[\[Wiki\]\]-World. It is now [clock format [clock seconds]]."

Rendered Content looks like:

Hello [[Wiki]]-World. It is now Thu Jan 20 00:19:27 +0100 2022.