Artifact 273fd35f5db157f9161c79e7417b1b1fbb5715b6:
- File th1ish/cgi/widgets/test-widget.fossi1ish — part of check-in [fc5b5dd5a6] at 2014-05-10 10:29:20 on branch trunk — Lots of tinkering with the CGI bits. Improved widget and tmplish infrastructure a bit. (user: stephan size: 406)
$function(){ const myName = argv.shift() var opt = this.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.renderWidget.renderArgs