rblade 0.5.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -2
- data/README.md +180 -543
- data/REFERENCE.md +138 -0
- data/examples/README.md +3 -0
- data/examples/application/home.rblade +23 -0
- data/examples/components/content/alert.rblade +6 -0
- data/examples/components/content/hero.rblade +14 -0
- data/examples/components/h1.rblade +6 -0
- data/examples/components/p.rblade +14 -0
- data/examples/layouts/app.rblade +16 -0
- data/lib/rblade/compiler/compiles_components.rb +3 -3
- data/lib/rblade/compiler/{compiles_echos.rb → compiles_prints.rb} +11 -10
- data/lib/rblade/compiler/compiles_ruby.rb +1 -1
- data/lib/rblade/compiler/compiles_statements.rb +24 -17
- data/lib/rblade/compiler/statements/{compiles_props.rb → compiles_component_helpers.rb} +13 -5
- data/lib/rblade/compiler/statements/compiles_conditionals.rb +45 -13
- data/lib/rblade/compiler/statements/compiles_form.rb +48 -0
- data/lib/rblade/compiler/statements/compiles_loops.rb +8 -4
- data/lib/rblade/compiler/statements/compiles_once.rb +6 -6
- data/lib/rblade/compiler/statements/compiles_stacks.rb +43 -19
- data/lib/rblade/compiler/tokenizes_statements.rb +13 -2
- data/lib/rblade/compiler.rb +3 -3
- data/lib/rblade/component_store.rb +1 -1
- data/lib/rblade/helpers/attributes_manager.rb +28 -8
- data/lib/rblade/helpers/slot_manager.rb +8 -2
- data/rblade.gemspec +1 -1
- metadata +17 -9
- data/TODO.md +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76b47c51f5796359252d33fe3865bb7189cd4de068579fee57520c881879755d
|
4
|
+
data.tar.gz: ba1288cd0382290deb526f4faf4c5fe7c15d78372fca5248d41b4861f1ac6abb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4783a57cbe6b7f2173f0435b2024ed3c83dff68819637d2eb759addd7ca485fd7b6d3c89987c8a07ff2561bded344037161bbb67b7bbc8147575e9adc568ce1d
|
7
|
+
data.tar.gz: 91f27168157d7448e7e26979a4dc60a731a6471027a8c5ddceb5ac4e23d51f3b39de0d61a2ba1970ec58bc726ccdb3316ed5e6389c463b63c61dd358e8e64f2f
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,25 @@
|
|
1
|
-
## 0.
|
1
|
+
## 1.0.0 [UNRELEASED]
|
2
|
+
- Add quick reference and examples
|
3
|
+
- Add @shouldRender directive
|
4
|
+
- Add support for ERB style `<%==` unsafe prints
|
5
|
+
- Fix bugs with statement argument error handling
|
6
|
+
- Remove deprecated "breakIf" and "nextIf" statements
|
7
|
+
- Rename "echo" compilers to "print"
|
8
|
+
- Update README
|
9
|
+
|
10
|
+
## 0.6.1 [2024-08-02]
|
11
|
+
- Fix broken build
|
12
|
+
|
13
|
+
## 0.6.0 [2024-08-02]
|
14
|
+
- Add attributes.class method
|
15
|
+
- Add `@blank?`, `@defined?`, `@empty?`, `@nil?` and `@present?`
|
16
|
+
- Add `@method`, `@patch`, `@put` and `@delete`
|
17
|
+
- Add `@pushif` and `@prependif`
|
18
|
+
- Add string methods to slots
|
19
|
+
- Fix whitespaces causing problems between case and when statements
|
20
|
+
- Pass Rails `session`, `cookies`, `flash` and `params` variables into components
|
21
|
+
|
22
|
+
## 0.5.0 [2024-07-31]
|
2
23
|
- Add support for slots
|
3
24
|
- Change @props to only add valid variable names to global scope
|
4
25
|
- Change @props to remove from attributes array
|
@@ -44,4 +65,4 @@
|
|
44
65
|
- Add attributes, class and style manager
|
45
66
|
|
46
67
|
## 0.1.0 [2024-07-22]
|
47
|
-
- Initial release
|
68
|
+
- Initial release
|