Skip to content
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

How to use parameter with filter #153

Open
GammaGames opened this issue May 5, 2022 · 0 comments
Open

How to use parameter with filter #153

GammaGames opened this issue May 5, 2022 · 0 comments

Comments

@GammaGames
Copy link

GammaGames commented May 5, 2022

I'm using the library with the template only method:

{% assets filters="jsmin", output="gen/packed.js",
          "common/jquery.js", "site/base.js", "site/widgets.js" %}
    <script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}

But I'm having an issue with the jsmin library stripping whitespace in my template strings, so that this is a test is turned into thisisatest. The jsmin library has the quote_chars=quote_chars="'\"`" parameter that should fix this, is there a way to pass the parameter to the template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant