Issue #8022 has been updated by Nick Lewis.

Status changed from Accepted to Merged - Pending Release

Merged the hook core/head_extensions into master in 
commit:60cf06badb4e425fbc801906b7b0b83a4a9ef513. This commit also adds an asset 
installation step to the plugin install process, creating symlinks in `public` 
for everything in the plugin's `public` directory, creating directories as 
necessary.
----------------------------------------
Feature #8022: Plugin needs to be able to add CSS and JS resources
https://projects.puppetlabs.com/issues/8022

Author: Randall Hansen
Status: Merged - Pending Release
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: 
Branch: 
Affected URL: 
Affected Dashboard version: 


RIght now plugin JavaScript and CSS resources can only be included manually, by 
inserting them into the main layout.  We should have a way to define which 
resources to include and do so on the fly, without touching the layout template 
on disk.

I think the best way is to allow a plugin to inject arbitrary text into the 
`<head>` tag of `/app/views/layouts/application.html.haml`.  Then Dashboard 
doesn't have to care about individual resources, and the plugin has most 
flexibility.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to puppet-bugs@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-bugs+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to