You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im working on a fuel app, which is using the theme class, and i want themes to able to remove/add assets as needed.
your package is brilliant and will help in explaining the steps to theme debs (which i why i chose it over Asset).
the one thing missing for me (i was considering ie if, but found the agent class does it pretty well). anyway back on track, the one thing missing is the ability to remove assets once added.
sure you can disable a group, but say i have a page i dont want "table-styling.css" loaded on, but the file is loaded in my "theme" group.
the problem with this is i cant disable the entire group.
i know this can be handled by not adding the file to the group per page, but trying to be efficient i ended up extending the class and adding these functions:
im working on a fuel app, which is using the theme class, and i want themes to able to remove/add assets as needed.
your package is brilliant and will help in explaining the steps to theme debs (which i why i chose it over Asset).
the one thing missing for me (i was considering ie if, but found the agent class does it pretty well). anyway back on track, the one thing missing is the ability to remove assets once added.
sure you can disable a group, but say i have a page i dont want "table-styling.css" loaded on, but the file is loaded in my "theme" group.
the problem with this is i cant disable the entire group.
i know this can be handled by not adding the file to the group per page, but trying to be efficient i ended up extending the class and adding these functions:
quick and dirty removing of the files from the array deals with this well.
it probably needs a bit more work to deal with none namespaced assets, but it works for me, maybe you could add it to the next version?
might even be an idea to put the values in a "disabled" array, so it could then be loaded after (although i cant see this being needed once removed).
The text was updated successfully, but these errors were encountered: