Does anybody know a way to adjust the included JS/CSS resources in a template based on the apps you've installed?
Let's say we have a basic feature in app x
using template.html
, and this requires foo.js
which is provided in the static files for the app.
What I'd like is a way of saying an additional and optional app y
can register bar.js
to be included in template.html
as well and this provides some advanced functionality.
Ideally, this should be tied in on a feature level - so I register both foo.js
and bar.js
to provide for feature A
and in my template I just indicate I want all the static content for A
.