Skip to content

Commit

Permalink
fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarialaoui10 committed Oct 10, 2024
1 parent 32909e4 commit 9293533
Show file tree
Hide file tree
Showing 5 changed files with 890 additions and 0 deletions.
12 changes: 12 additions & 0 deletions preview/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<script type="module" src="/main.js"></script>
</body>
</html>
11 changes: 11 additions & 0 deletions preview/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {Section,SPA, text} from "ziko"
__Ziko__.__Config__.default.target = document.body
const main=Section()
const p1=Section()
const p2=Section()
let S=SPA(
main,{
"/":text("Hi"),
"/page1":text("p1"),
"/page2":text("p2")
})
Loading

0 comments on commit 9293533

Please sign in to comment.