-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
Allow for Template Extensions to Easily Inline Code #246
Comments
It's something I wanted to add for some time, but I didn't consider this syntax. Kind of a genius idea. |
Genius may be a little generous, but thanks :). I work on the PageSpeed team over at Google, and the ability to inline content will be super useful based on some of the research we've been doing. Keep up the good work! |
Any news on this? |
+1. That is kind of a must have feature. Any plan on merging this @miracle2k ? Thanks :) |
Yes, but but the issue noted in #384 that would need to be addressed first. |
@miracle2k what is blocking this issue right now ? I might have some time to dig. I really need this to go further :) (this issue and the #384 PR) |
As noted on the PR, the pull request forces a file system touch currently, even if ASSETS_CONTENT is not used, and auto_build is False. Part of the promise of auto_build=False is that the filesystem is not touched, and in fact now files exists; the urls could be generated solely based on the manifest. |
Currently, there is no quick and easy way to inline CSS and/or JS via webassets. For instance, the Jinja2 extension supports the following usage:
However, if you want to inline that css instead, you're out of luck. It would be great if I could easily replace that with:
The text was updated successfully, but these errors were encountered: