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>
In reply to Re: Output should have multiple segments
by Arunbear
in thread Output should have multiple segments
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |