We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Adding jsbundle property to the global metadata with a structure jsbundle: { 'source-file.js': { src: 'destination-file.js', async: }}}.
jsbundle
jsbundle: { 'source-file.js': { src: 'destination-file.js', async: }}}
This allows templates to do:
{% for script in jsbundle %} <script {% for attr,value in script %} {{attr}}="{{value}}"{% endfor %}></script> {% endfor %}
As well as use a mechanism whereby file front-matter specifies the scripts to load:
--- scripts: - 'assets/js/common/source.js' - 'assets/js/app/source.js': async: true integrity: 'abcdefg' ---
{% for script in jsbundle %} {% if typeof script === 'string' %} <script src="{{ script }}"></script> {% else %} <script {% for attr,value in script %} {{attr}}="{{value}}"{% endfor %}></script> {% endfor %}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Adding
jsbundle
property to the global metadata with a structurejsbundle: { 'source-file.js': { src: 'destination-file.js', async: }}}
.This allows templates to do:
As well as use a mechanism whereby file front-matter specifies the scripts to load:
The text was updated successfully, but these errors were encountered: