diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-04-20 19:30:28 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-04-20 19:30:28 +0200 |
| commit | e371c801fed71bb73bc7c027e3de5ad2a6116673 (patch) | |
| tree | e6818b34fed4723d8c44d71f8c6d1a68e44c4c8d /tests/recursive | |
| parent | 47a5607a691a576928896f21bcf563c011dc64e5 (diff) | |
Diffstat (limited to 'tests/recursive')
| -rw-r--r-- | tests/recursive/build.lua | 7 | ||||
| -rw-r--r-- | tests/recursive/src/index.html | 15 | ||||
| -rw-r--r-- | tests/recursive/src/second.html | 15 |
3 files changed, 37 insertions, 0 deletions
diff --git a/tests/recursive/build.lua b/tests/recursive/build.lua new file mode 100644 index 0000000..37e1d8e --- /dev/null +++ b/tests/recursive/build.lua @@ -0,0 +1,7 @@ +local template = Template:new() + +template:add_directory('./src', { + name = template:option('name') +}) + +return template diff --git a/tests/recursive/src/index.html b/tests/recursive/src/index.html new file mode 100644 index 0000000..38b1f0b --- /dev/null +++ b/tests/recursive/src/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE "html"> +<html> + <head> + <title>@{name()}</title> + </head> + <body> + @{function() + local text = "" + for i=1,10 do + text = text .. ' ' .. tostring(i) + end + return text + end} + </body> +</html> diff --git a/tests/recursive/src/second.html b/tests/recursive/src/second.html new file mode 100644 index 0000000..e03a249 --- /dev/null +++ b/tests/recursive/src/second.html @@ -0,0 +1,15 @@ +<!DOCTYPE "html"> +<html> + <head> + <title>@{name()}</title> + </head> + <body> + @{function() + local text = "" + for i=1,50 do + text = text .. ' ' .. tostring(i) + end + return text + end} + </body> +</html> |