Right now I am adding javascript files and code to my master.zpt
template by using two slots in the master.zpt file

master.zpt:

    <script metal:define-slot="head-javascript"></script>
    <script metal:define-slot="head-javascript-1"></script>

some_view.zpt:

      <script metal:fill-slot="head-javascript" src="http://
ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
      <script metal:fill-slot="head-javascript-1">
          $(document).ready(function() {
            $("#tabs").tabs();
          });
      </script>


However, this leaves me with 2 empty script tags on views that do not
use the slots.
Is there a better way tot do this?

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to