summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/browser.st9
-rwxr-xr-xtemplate/chat.st6
2 files changed, 14 insertions, 1 deletions
diff --git a/template/browser.st b/template/browser.st
new file mode 100755
index 0000000..f9439d6
--- /dev/null
+++ b/template/browser.st
@@ -0,0 +1,9 @@
+<html>
+ <body>
+ $if(nick)$
+ Hello, $nick$
+ $else$
+ Hello, unnamed
+ $endif$
+ </body>
+</html>
diff --git a/template/chat.st b/template/chat.st
index 5c97275..701dd92 100755
--- a/template/chat.st
+++ b/template/chat.st
@@ -9,7 +9,11 @@
var Room = $json_room_key$;
var Timestamp = $timestamp$;
var PostedMessages = [];
- var IsAdmin = $if(isadmin)$ true $else$ false $endif$
+ $if(isadmin)$
+ var IsAdmin = true;
+ $else$
+ var IsAdmin = false;
+ $endif$
</script>
$if(isadminroom)$