Skip to content

Warn developers that {% stylesheet %} and {% javascript %} tags only support static content #960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
karreiro opened this issue Jun 3, 2025 · 0 comments
Assignees
Labels
#gsd:44152 Simplify common Liquid patterns

Comments

@karreiro
Copy link
Contributor

karreiro commented Jun 3, 2025

Using Liquid code inside {% stylesheet %} or {% javascript %} tags, as shown below, is not permitted:

{% stylesheet %}
  .button {
    background-color: {{ settings.button_color }};
    color: white;
  }
{% endstylesheet %}

This mistake can happen quite easily, so it would be very helpful to have linting in place to catch this scenario.

@karreiro karreiro added the #gsd:44152 Simplify common Liquid patterns label Jun 3, 2025
@karreiro karreiro self-assigned this Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#gsd:44152 Simplify common Liquid patterns
Projects
None yet
Development

No branches or pull requests

1 participant