From 4f1ef02897b9bc39a6f9e2b5a9a97de672b62623 Mon Sep 17 00:00:00 2001 From: Stanisław Zagórowski Date: Sun, 14 Jan 2024 19:50:52 +0100 Subject: Docs, pretty template, more info in `new` and `init` --- templates/index.luax | 41 ++++++++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 11 deletions(-) (limited to 'templates/index.luax') diff --git a/templates/index.luax b/templates/index.luax index 6785491..7104964 100644 --- a/templates/index.luax +++ b/templates/index.luax @@ -1,14 +1,33 @@ return function() - return - - PROJECT_NAME - - -

PROJECT_NAME

-

Random number for you: {$ tostring(math.floor(math.random() * 100)) $}

-

- What font size is this? -

- + local font_sizes = { 12, 14, 18, 24 } + local font_size = font_sizes[math.floor(math.random() * #font_sizes) + 1] + return + + + + + + PROJECT_NAME + + +
+

PROJECT_NAME

+

+ Welcome to PROJECT_NAME! +

+

+ This project runs on + Reluax. +

+

+ Random number for you: + {$ tostring(math.floor(math.random() * 100)) $} +

+

+ What font size is this? +

+
+ end -- cgit v1.3.1