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

Inlining into mustache template doesn't work #71

Open
Eschon opened this issue Mar 11, 2016 · 1 comment
Open

Inlining into mustache template doesn't work #71

Eschon opened this issue Mar 11, 2016 · 1 comment

Comments

@Eschon
Copy link

Eschon commented Mar 11, 2016

I have a mustache template that contains html and I try to inline a js file into it.
Aside from the file extension and a few mustache tags its just normal HTML. The file that I want to inline is at the end of the body.

This is the script tag that I want to inline:

<script src="/tmp/map.js__inline=true"></script>

I also tried it without the =true and with the path relative to the file but nothing works, the line is unchanged and the console just prints

Running "inline:dist" (inline) task
Processing jssrc/skimap_container.mustache...OK

Does anyone know what the problem is?

@kuzzmi
Copy link

kuzzmi commented Nov 7, 2016

Long time no comments :) The problem is that you added __inline=true to the file extension, however it must be added as a query parameter to the URL: <script src="/tmp/map.js?__inline=true"></script>, note the ?

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

2 participants