You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+29-27
Original file line number
Diff line number
Diff line change
@@ -27,18 +27,23 @@ It converts this:
27
27
28
28
```css
29
29
section#some-id {
30
-
--text: 'This is text!';
30
+
/* {{ This is text inside }} */
31
31
--attr-title: 'Title';
32
+
32
33
background: red;
33
34
color: aliceblue;
34
35
}
35
36
section#some-idheader[data-attribute='v'] {
36
-
--text: 'This is the header text';
37
+
/* {{ This is the header text }} */
38
+
37
39
color: blue;
38
40
}
39
41
section#some-idspan {
40
-
--text: 'Text of span';
41
-
--text-after: 'Text after';
42
+
/*
43
+
{{ Text of span }}
44
+
Text after
45
+
*/
46
+
42
47
color: peru;
43
48
}
44
49
```
@@ -47,9 +52,10 @@ To this:
47
52
48
53
```html
49
54
<sectionid="some-id"title="Title">
50
-
This is text!
55
+
This is text inside
51
56
<headerdata-attribute="v">This is the header text</header>
52
-
<span> Text of span </span>Text after
57
+
<span>Text of span</span>
58
+
Text after
53
59
</section>
54
60
```
55
61
@@ -137,35 +143,31 @@ a[title='Title!'] {
137
143
</a>
138
144
```
139
145
140
-
You can also add **text** to the tag via `--text` property:
141
-
142
-
```css
143
-
div {
144
-
--text: 'The battle continues again';
145
-
}
146
-
```
147
-
148
-
```html
149
-
<div>The battle continues again</div>
150
-
```
151
-
152
-
In order to insert a tag _between the text_, you will definitely need special properties that allow you to enter text before and after the tag: `--text-before` and `--text-after`
146
+
You can add text inside the tag using **comments** or **variables**:
153
147
154
148
```css
149
+
/* The old way is not recommended for use */
155
150
div {
156
-
--text: 'The text inside the div';
151
+
--text-before: 'The battle ';
152
+
--text: 'continues';
153
+
--text-after: ' again';
157
154
}
158
-
divspan {
159
-
--text: ' The text inside span';
160
-
--text-before: '| before';
161
-
--text-after: ' after';
155
+
/* New way, recommended for use. Curly braces are required! */
156
+
section {
157
+
/*
158
+
The battle
159
+
{{ continues }}
160
+
again
161
+
*/
162
162
}
163
163
```
164
164
165
165
```html
166
-
<div>
167
-
The text inside the div | before<span> The text inside span</span> after
0 commit comments