Oh, and if you need more than one something, use curly braces: @Import(library = { "context:js/something1.js", "context:js/something2.js"}, stylesheet = "context:css/something.css")
mrg On Fri, May 6, 2011 at 1:29 PM, Michael Gentry <mgen...@masslight.net> wrote: > Just use @Import in your page's class: > > @Import(library = "context:js/something.js", stylesheet = > "context:css/something.css") > > mrg > > PS. You should probably use that in your layout's class, too. > > > On Fri, May 6, 2011 at 1:17 PM, stephanos2k > <stephan.beh...@googlemail.com> wrote: >> I have a layout L and page P. The layout has a few scripts & stylesheets >> which are needed everywhere. But P requires a few specific files. >> >> How can I add a stylesheet and a script to the final <head> ? >> >> -> I tried just defining a <head> in P, assuming it would be merged; didn't >> work. >> -> I can't use annotations, since the assets are different for production >> mode. >> >> Can I somehow use a <block> in layout and overwrite it in the page? >> >> PS: Using Tapestry 5.2.5 >> >> >> Cheers, >> Stephan >> >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/contribute-to-head-from-a-page-tp4376587p4376587.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org