Skip to content

Conversation

@dmtrshat
Copy link
Member

This change adds template support for config-defined scrolls in g!…; syntax, including variable arguments and prefix modifiers, while keeping output deterministic and reducing unnecessary cloning.

Overview:

  • Enabled using scrolls inside g!…;, e.g. g!complex-card=120px_red_100px;.
  • Flattened scroll expansion into real property spells so CSS is generated under the outer templated selector.
  • Preserved prefix semantics (md__, {...} focus, hover: effects) by applying them to each expanded spell.
  • Reduced clone pressure in the template-flattening path.

Tests:

  • Added unit coverage for parsing g!<scroll>=...;.
  • Added end-to-end in-memory builder tests covering both plain and prefixed cases (md__{...}hover:).

closes #99

@dmtrshat dmtrshat self-assigned this Dec 27, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Grimoire CSS Dec 27, 2025
@dmtrshat dmtrshat linked an issue Dec 27, 2025 that may be closed by this pull request
@dmtrshat dmtrshat changed the title feat: add template support for scroll usage Template support for scroll usage Dec 27, 2025
@dmtrshat dmtrshat merged commit 1cde1bd into rc/1.7.0 Dec 27, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from Backlog to On RC in Grimoire CSS Dec 27, 2025
@dmtrshat dmtrshat moved this from On RC to Done in Grimoire CSS Dec 27, 2025
@dmtrshat dmtrshat deleted the feature/#99-template-support-for-scroll-usage branch December 27, 2025 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Template support for scroll usage (g!...;)

2 participants