Artifact fb84bf65321c767747bb10c8f852a8d4ae963e5c:
- File th1ish/cgi/widgets/test-widget.fossi1ish — part of check-in [fdb8174e77] at 2014-03-09 13:34:33 on branch trunk — Lots of tinkering with the CGI scripts. First f-checkin with added files. (user: stephan size: 403)
$function(){ const myName = argv.shift() var opt = Fossil.extendProperties(object{ localTime: false }, argv.0 || object{}) const out = this.out $out {This is a widget. argv=} argv //throw argv $out "<br/>Current " (opt.localTime ? "local" : "GMT") " server time: " $out strftime(" %Y-%m-%d %H:%M:%S", -1, opt.localTime) }.apply api.cgi api.cgi.WIDGET_RENDER_ARGS