@yannosay/sinth 0.13.2 → 0.13.3

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.
Files changed (2) hide show
  1. package/README.md +13 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -18,7 +18,19 @@ Input(bind: userName, placeholder: "Enter your name")
18
18
  Paragraph { "Hello, " + userName }
19
19
  ```
20
20
 
21
- No useState. No onChange. No e.target.value. Just bind.
21
+ No useState. No onChange. No e.target.value.
22
+
23
+ ```ts
24
+ page
25
+ title = "Counter"
26
+
27
+ var int count = 0
28
+
29
+ Main {
30
+ Heading(level: 1) {count}
31
+ Button(onClick: count = count + 1) {"Increment"}
32
+ }
33
+ ```
22
34
 
23
35
  #### Logic and UI live together.
24
36
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yannosay/sinth",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "A declarative & reactive language that compiles to pure HTML, CSS, and JavaScript.",
5
5
  "author": "Yannosay Productions",
6
6
  "license": "AGPL-3.0",