@collie-lang/compiler 1.3.2 → 1.4.0
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 +3 -3
- package/dist/index.cjs +841 -1200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +841 -1200
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,14 +4,14 @@ Collie compiler core (MVP stub).
|
|
|
4
4
|
|
|
5
5
|
## Class aliases
|
|
6
6
|
|
|
7
|
-
The compiler understands a top-level `classes` block that acts as a macro table for CSS/Tailwind tokens. Each block must live at indent level 0 and appear before the first real template node (`div`, text, expressions, conditionals). Multiple `classes` blocks are allowed
|
|
7
|
+
The compiler understands a top-level `classes` block that acts as a macro table for CSS/Tailwind tokens. Each block must live at indent level 0 and appear before the first real template node (`div`, text, expressions, conditionals). Multiple `classes` blocks are allowed and all aliases are merged:
|
|
8
8
|
|
|
9
9
|
```collie
|
|
10
10
|
classes
|
|
11
11
|
baseContainer = container.mx-auto.p-6
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
user
|
|
13
|
+
#inputs
|
|
14
|
+
user
|
|
15
15
|
|
|
16
16
|
classes
|
|
17
17
|
adminPanel = mt-4.bg-red-100.text-red-700
|