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
Script tag with html module? #13
Comments
@goldingdamien thanks for the question. If all you want to do is to import a file as a string, I would recommend the very handy Fetch API: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
|
The example shows a html module in a script tag:
https://github.com/PolymerLabs/html-modules-toolkit/blob/master/examples/common/src/index.html
Is there no limitation to what data can be represented by a script tag?
Can any data then be used?
Why is there a focus on "html"? Wouldn't a way to import any kind of file as a string be better(like https://github.com/webpack-contrib/raw-loader)?
The text was updated successfully, but these errors were encountered: