Open its-anas opened 1 year ago
Can these comments be removed?
It makes it impossible to create a snippet that returns JavaScript code.
At this time, we have to treat all snippets as HTML output.
Had the same issue and reached here, if anyone encounters the same issue, I've used the strip_html filter to remove those comments
{% capture content %}{% render 'some-snippet'%}{% endcapture %}
<style>
{{ content | strip_html }}
</style>
1) I want to use a snippet that converts hex to rgba:
2) And it should returns the output so i can use it inside page CSS:
3) But instead of getting only the output, there is extra 2 wrapping comments i'm unable to get rid of: