From d5cc926ec6c3020d2d51cacc7d14e59c558c4167 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Sun, 30 Jun 2024 14:48:13 +1000 Subject: beginning draftwork on modules --- modules/template.tcl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/template.tcl (limited to 'modules') diff --git a/modules/template.tcl b/modules/template.tcl new file mode 100644 index 0000000..b76c201 --- /dev/null +++ b/modules/template.tcl @@ -0,0 +1,14 @@ +namespace eval template { + + variable targets { + target1 target2 + } + + proc run {request_target} { + return [string cat \ + [http::start "Title"] \ + "This is a template
" \ + "request_target: $request_target" \ + [http::end]] + } +} -- cgit v1.2.3