feat: zig rewrite
This commit is contained in:
commit
0213276406
19 changed files with 865 additions and 0 deletions
3
examples/a.htmlua
Executable file
3
examples/a.htmlua
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
<p>included file!</p>
|
||||
<use part=first></use>
|
||||
<use part=second></use>
|
||||
4
examples/config.zon
Executable file
4
examples/config.zon
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
.{
|
||||
.component_path = "./examples",
|
||||
.template_path = "./examples",
|
||||
}
|
||||
21
examples/main.htmlua
Executable file
21
examples/main.htmlua
Executable file
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue