rblade 0.3.0 → 0.5.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 +15 -0
- data/LICENSE.md +24 -0
- data/README.md +311 -864
- data/TODO.md +2 -0
- data/lib/rblade/compiler/compiles_components.rb +29 -11
- data/lib/rblade/compiler/compiles_echos.rb +4 -4
- data/lib/rblade/compiler/compiles_ruby.rb +1 -1
- data/lib/rblade/compiler/compiles_statements.rb +15 -1
- data/lib/rblade/compiler/compiles_verbatim.rb +29 -0
- data/lib/rblade/compiler/statements/compiles_conditionals.rb +26 -0
- data/lib/rblade/compiler/statements/compiles_html_attributes.rb +21 -0
- data/lib/rblade/compiler/statements/compiles_loops.rb +6 -22
- data/lib/rblade/compiler/statements/compiles_once.rb +57 -0
- data/lib/rblade/compiler/statements/compiles_props.rb +23 -4
- data/lib/rblade/compiler/statements/compiles_stacks.rb +4 -4
- data/lib/rblade/compiler/tokenizes_statements.rb +17 -11
- data/lib/rblade/compiler.rb +12 -1
- data/lib/rblade/helpers/attributes_manager.rb +7 -1
- data/lib/rblade/helpers/class_manager.rb +4 -0
- data/lib/rblade/helpers/html_string.rb +4 -0
- data/lib/rblade/helpers/slot_manager.rb +23 -0
- data/lib/rblade/helpers/stack_manager.rb +4 -0
- data/lib/rblade/helpers/style_manager.rb +4 -0
- data/lib/rblade/rails_template.rb +9 -5
- data/rblade.gemspec +3 -3
- metadata +12 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d795f1e81eb6dd60c3c581ccb22de43921bfab0997eb45daf6309298fb83fc5d
|
4
|
+
data.tar.gz: 2189078e98ad7ede598bc77c524bb1a88b396390098dc451565567e37532ba03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8206e2599b2cd9556e2ff9eb03a5789bd87aa73d2776edce7f35c02c1bde56497838d7dece88e05a986775df1a21371d2ef1adf37a7aef75ed6a442e5fe0c5a
|
7
|
+
data.tar.gz: e0b5eeaff73cc4530c70cd6c3f054b561948feaa4e845f31b29c496f465c2d73de6d822d4828b740b40ced23fd85658cbbfc5f5120fc2c564ae343bb2fc4b551
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
## 0.5.0
|
2
|
+
- Add support for slots
|
3
|
+
- Change @props to only add valid variable names to global scope
|
4
|
+
- Change @props to remove from attributes array
|
5
|
+
|
6
|
+
## 0.4.0 [2024-07-29]
|
7
|
+
- Add @class and @style statements
|
8
|
+
- Add @env and @production statements
|
9
|
+
- Add @once, @pushOnce and @prependOnce statements
|
10
|
+
- Add @verbatim statement
|
11
|
+
- Add readme and license
|
12
|
+
- Improve boundaries of statements
|
13
|
+
- Make statements ignore underscore and case
|
14
|
+
- Merge @break & @breakif and @next & @nextif
|
15
|
+
|
1
16
|
## 0.3.0 [2024-07-26]
|
2
17
|
- Add support for index component files
|
3
18
|
- Add support for relative components
|
data/LICENSE.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
This software and documentation is built on previous effort in the Laravel
|
4
|
+
project
|
5
|
+
Original work Copyright (c) Taylor Otwell
|
6
|
+
Derivative work Copyright (c) 2024 Simon J
|
7
|
+
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
10
|
+
in the Software without restriction, including without limitation the rights
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
13
|
+
furnished to do so, subject to the following conditions:
|
14
|
+
|
15
|
+
The above copyright notice and this permission notice shall be included in
|
16
|
+
all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
+
THE SOFTWARE.
|