diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-07-17 19:54:15 -0600 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-07-17 20:08:24 -0600 |
| commit | 55a1697e7175c4c82989c0633ef2227fb0295b8e (patch) | |
| tree | e3592665ca7f051849debe716a2cfc2f2592110b /examples | |
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/a.htmlua | 3 | ||||
| -rwxr-xr-x | examples/config.zon | 4 | ||||
| -rwxr-xr-x | examples/main.htmlua | 21 |
3 files changed, 28 insertions, 0 deletions
diff --git a/examples/a.htmlua b/examples/a.htmlua new file mode 100755 index 0000000..4857b50 --- /dev/null +++ b/examples/a.htmlua @@ -0,0 +1,3 @@ +<p>included file!</p> +<use part=first></use> +<use part=second></use> diff --git a/examples/config.zon b/examples/config.zon new file mode 100755 index 0000000..2335fbe --- /dev/null +++ b/examples/config.zon @@ -0,0 +1,4 @@ +.{ + .component_path = "./examples", + .template_path = "./examples", +} diff --git a/examples/main.htmlua b/examples/main.htmlua new file mode 100755 index 0000000..d7827c2 --- /dev/null +++ b/examples/main.htmlua @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <title>main</title> +</head> + +<body> + <h1>hello</h1> + <include path="a.htmlua"> + <export part=first> + <p><b>exported from main!</b></p> + </export> + <export part=second> + <p><b>exported from main but again!</b></p> + </export> + </include> + +</body> + +</html> |
