@yannosay/sinth 1.5.1 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Sinth
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@yannosay/sinth)
|
|
4
|
+
[](https://www.npmjs.com/package/@yannosay/sinth)
|
|
5
|
+
[](https://github.com/Yannosay/sinth/blob/main/LICENSE)
|
|
6
|
+
|
|
3
7
|
The language that makes HTML feel SO easy. Declarative. Reactive. Compiles to pure HTML.
|
|
4
8
|
|
|
5
9
|
**I need YOUR Help to improve Sinth, please consider joining the Discord so Sinth can be optimized more easy, currently I am doing this alone!**
|
|
@@ -8,10 +12,25 @@ The language that makes HTML feel SO easy. Declarative. Reactive. Compiles to pu
|
|
|
8
12
|
* Discord: [Join here!](https://discord.gg/SUvcrafTQm)
|
|
9
13
|
* Documentation: [sinth.yannosay.com/docs](https://sinth.yannosay.com/docs) (HIGHLY WIP, not yet finished at all!)
|
|
10
14
|
|
|
15
|
+
#### Try out Sinth directly in Web! (Beta)
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<div id="nice!"></div>
|
|
19
|
+
<script src="sinth.js"></script>
|
|
20
|
+
<script type="text/sinth">
|
|
21
|
+
page
|
|
22
|
+
title = "Counter"
|
|
23
|
+
var int count = 0
|
|
24
|
+
|
|
25
|
+
Main {
|
|
26
|
+
Heading(level: 1) {count}
|
|
27
|
+
Button(onClick: count = count + 1) {"Increment"}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
$entry-point("nice!")
|
|
31
|
+
</script>
|
|
32
|
+
```
|
|
11
33
|
|
|
12
|
-
[](https://www.npmjs.com/package/@yannosay/sinth)
|
|
13
|
-
[](https://www.npmjs.com/package/@yannosay/sinth)
|
|
14
|
-
[](https://github.com/Yannosay/sinth/blob/main/LICENSE)
|
|
15
34
|
|
|
16
35
|
## Why Sinth?
|
|
17
36
|
|
|
@@ -21,7 +40,7 @@ Input(bind: userName, placeholder: "Enter your name")
|
|
|
21
40
|
Paragraph { "Hello, " + userName }
|
|
22
41
|
```
|
|
23
42
|
|
|
24
|
-
No useState, onChange or e.target.value
|
|
43
|
+
No useState, onChange or e.target.value.
|
|
25
44
|
|
|
26
45
|
```ts
|
|
27
46
|
page
|