[katello-devel] Javascript View Includes

Eric Helms ehelms at redhat.com
Mon Jul 11 13:11:01 UTC 2011


I have attempted to streamline javascript includes so that they are all 
placed in the html head and not inline.  If you need to include 
javascript in a view template, you can place the javascript calls inside 
a "- content_for :javascripts do" block. For Example,

- content_for :javascripts do
   = include_javascripts :env_select

   :javascript
     var foo = "bar";


Eric Helms
ehelms at redhat.com




More information about the katello-devel mailing list