Commit Graph
14 Commits
Author SHA1 Message Date
Julia Boutin 47288ccca0 Add liquid_public_docs yard tag to snippet tag 2025-10-27 10:13:05 -06:00
Julia Boutin de23ed82d5 Extract snippet resource scoring logic into assign_score_of 2025-10-27 10:13:05 -06:00
Julia Boutin 1069b944a0 Allow render tag to recognize drops that respond to to_partial 2025-10-27 10:13:04 -06:00
Julia Boutin c6c342ab32 Remove ... syntax references 2025-10-27 10:13:04 -06:00
Julia Boutin 3556c3371e Raise syntax error on incorrect render identifier type 2025-10-27 10:13:04 -06:00
Julia Boutin 96a44927b5 Support prop spreading 2025-10-27 10:13:04 -06:00
Julia Boutin fb6cf17099 Implement resource limits and remove leftover string references 2025-10-27 10:12:43 -06:00
Julia Boutin 9409dd8f4a Render arguments should maintain correct precedence 2025-10-27 10:12:43 -06:00
Julia Boutin b5ecd4d0f8 Remove inline snippet specific example files 2025-10-27 10:11:22 -06:00
Julia Boutin ba5aa0abf6 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-27 10:11:22 -06:00
Julia Boutin a384e229d8 Support ... inline snippet syntax 2025-10-27 10:11:22 -06:00
Julia Boutin db474d5b57 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-27 10:11:22 -06:00
Julia Boutin 3a13ac7e6c Create SnippetDrop and set in scope 2025-10-27 10:11:22 -06:00
Julia BoutinandOrlando Qiu 4d13f030f8 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-27 10:11:21 -06:00