-
Notifications
You must be signed in to change notification settings - Fork 236
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
Add ability to run scripts per page #372
Comments
That makes it simpler for people not aware of Overview of SuperSuper gives the ability to effectively append or prepend to the block because using For example: In the page template (page.html)
would output:
A suggestion might be:inside layout.html
This would allow overriding/removing/editing of all scripts on a page or just adding additional scripts after the global scripts. Enables overriding all scripts in page.html:
or Enables just including additional page.html specific scripts similar to your proposal
|
that on your suggestion of adding |
I've wanted to do it a few times. What I've ended up doing is duplicating some of the contents of Overriding I'm probably not the target user (I'm an advanced user) but my suggestion adds a little more flexibility and another block 'hook' for people be more targeted and direct in what they're doing with their templates IMO. |
cool, thanks, I've made a PR: #373 |
#373 is merged so closing this now. |
Currently all scripts are added at the end of the page, in
layout.html
.This means if you have a script on one page that relies on jQuery, there's no way to add it after jQuery is loaded.
Propose changing this in layout.html
to
The text was updated successfully, but these errors were encountered: