lui-templates 0.0.6 → 0.2.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.
@@ -1,31 +0,0 @@
1
- {
2
- "$schema": "https://l3p3.de/shr/schema/lui-templates.intermediary.json",
3
- "inputs": [
4
- {
5
- "name": "href",
6
- "fallback": "#"
7
- },
8
- {
9
- "name": "text"
10
- }
11
- ],
12
- "transformations": [],
13
- "effects": [],
14
- "nodes": [
15
- {
16
- "type": 1,
17
- "tag": "a",
18
- "props": {
19
- "href": {
20
- "type": 1,
21
- "data": "href"
22
- },
23
- "innerText": {
24
- "type": 1,
25
- "data": "text"
26
- }
27
- },
28
- "children": []
29
- }
30
- ]
31
- }
@@ -1,5 +0,0 @@
1
- <div>
2
- <h1>{{ title }}</h1>
3
- <p>Static text and {{ dynamic }} content</p>
4
- <a href="{{ url }}">Link to {{ destination }}</a>
5
- </div>
@@ -1 +0,0 @@
1
- <button {% if showClass %}class="{% if primary %}btn-primary{% endif %}"{% endif %}>Click</button>
@@ -1,51 +0,0 @@
1
- <div>
2
- <!-- Test 1: Nested conditionals around nodes -->
3
- {% if outerCondition %}
4
- {% if innerCondition %}
5
- <p>Both conditions true</p>
6
- <span>Second element</span>
7
- {% endif %}
8
- {% endif %}
9
-
10
- <!-- Test 2: Nested conditionals around text nodes -->
11
- {% if showText %}
12
- {% if emphasize %}
13
- Strong text here!
14
- {% endif %}
15
- {% endif %}
16
-
17
- <!-- Test 3: Triple nesting -->
18
- {% if level1 %}
19
- {% if level2 %}
20
- {% if level3 %}
21
- <p>All three levels true</p>
22
- {% endif %}
23
- {% endif %}
24
- {% endif %}
25
-
26
- <!-- Test 4: Mixed if and unless -->
27
- {% if enabled %}
28
- {% unless disabled %}
29
- <button>Click me</button>
30
- {% endunless %}
31
- {% endif %}
32
-
33
- <!-- Test 5: Regular conditional attributes (should work as before) -->
34
- <input {% if isRequired %}required{% endif %} type="text">
35
-
36
- <!-- Test 6: Nested conditionals in attribute values -->
37
- <div {% if hasClass %}class="{% if isPrimary %}primary{% endif %} btn"{% endif %}>Button</div>
38
-
39
- <!-- Test 7: Complex nested in attribute value -->
40
- <button class="btn {% if isActive %}active{% endif %} {% if isDisabled %}disabled{% endif %}">Multi-class</button>
41
-
42
- <!-- Test 8: Conditional boolean attribute with nested condition -->
43
- <button {% if outerCheck %}{% if innerCheck %}disabled{% endif %}{% endif %}>Nested boolean attr</button>
44
-
45
- <!-- Test 9: Text with variables inside nested conditionals -->
46
- {% if showGreeting %}
47
- {% if showName %}
48
- Hello {{ userName }}!
49
- {% endif %}
50
- {% endif %}
51
- </div>
@@ -1,9 +0,0 @@
1
- <div>
2
- {% if outer %}
3
- <h1>Outer is true</h1>
4
- {% if inner %}
5
- <p>Both outer and inner are true</p>
6
- {% endif %}
7
- {% endif %}
8
- <span>Always visible</span>
9
- </div>
@@ -1,6 +0,0 @@
1
- {% if A %}
2
- {% if B %}
3
- <p>1</p>
4
- <p>2</p>
5
- {% endif %}
6
- {% endif %}
@@ -1,2 +0,0 @@
1
- Hello {{ name }}!
2
- <p>Welcome</p>
@@ -1 +0,0 @@
1
- <button class="btn {% if isActive %}active{% endif %}">Test</button>
@@ -1,5 +0,0 @@
1
- <div>
2
- Hello {{ name }}!
3
- <p>Welcome</p>
4
- Goodbye
5
- </div>
@@ -1,5 +0,0 @@
1
- <div>
2
- {% unless hideContent %}
3
- <p>Visible content</p>
4
- {% endunless %}
5
- </div>