in reply to Output should have multiple segments
Here is another way to put CSS into the main document from a component. This is based on the filter mechanism so will work even if the component isn't a top-level one
In autohandlerIn the called component<html> <head> <style> /* default styling here */ __MYCSS__ </style> </head> <body> ... <% $m->call_next %> ... </body> </html> <%filter> s/__MYCSS__/$m->notes('mycss')/e </%filter>
... <%init> ... $m->notes(mycss => 'your css here'); </%init>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Output should have multiple segments
by John M. Dlugosz (Monsignor) on Jul 17, 2008 at 02:17 UTC | |
by Vynce (Friar) on Jul 17, 2008 at 05:15 UTC | |
by John M. Dlugosz (Monsignor) on Jul 18, 2008 at 07:34 UTC |