Julia Boutin and Guilherme Carreiro
12fd93fbe2
Missing inline snippets should display same error as filebased
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
5ceb0e9cec
Raise error on invalid snippet name
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
98fbd985d8
Remove unneeded read method
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
ae05ba071c
Add liquid_public_docs yard tag to snippet tag
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
4205131148
Extract snippet resource scoring logic into assign_score_of
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
db350c54ff
Allow render tag to recognize drops that respond to to_partial
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
0cc6cdd553
Remove ... syntax references
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
40e45e32ac
Raise syntax error on incorrect render identifier type
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
d4d2237b90
Support prop spreading
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
0ceeefba02
Implement resource limits and remove leftover string references
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
65fb80a347
Render arguments should maintain correct precedence
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
489a03118c
Remove inline snippet specific example files
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
99116638fd
Support with, for, and as inline snippet syntax
...
This commit updates the render method to share parts
of the snippet and block rendering logic to enable
inline snippets to support `with`, `for`, and `as`
syntax
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
9bcfd32e65
Support ... inline snippet syntax
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
c7ad1c90ca
Change inline snippet identifier from string to variable
...
Currently, snippet files identified by strings. This
PR makes changes to render to allow for new inline
snippets to use variables as identifiers instead
2025-10-30 12:00:44 +01:00
Julia Boutin and Guilherme Carreiro
12bbbc4537
Create SnippetDrop and set in scope
2025-10-30 12:00:44 +01:00
1eca707c4a
Update inline snippets syntax
...
Previously, inline snippets syntax looked a bit
different, they:
- used strings as tag identifiers
- defined tag arguments {% snippet "input" |type| %}
This PR updates snippets to better reflect
the currently proposed syntax
Co-authored-by: Orlando Qiu <[email protected] >
2025-10-30 12:00:44 +01:00