Then in another component (say mylist.html) that inherits from the autohandler<html> <head> <style> /* default styling here */ <& SELF:.add_style &> </style> </head> <body> ... <% $m->call_next %> ... </body> </html> <%method .add_style> </%method>
This way when mylist.html is requested, the custom css will get added within the html header.... <%method .add_style> /* custom styling here */ </%method>
Alternatively you could build the a css file dynamically and let Mason handle it. E.g. in each component where you want to add CSS to that of the overall page, you could write the css to a database table, and then when Mason serves the css page, it could query the database for the css and generate an appropriate css page.
I'll also highly recommend the Mason book if you haven't been reading it.
In reply to Re: Output should have multiple segments
by Arunbear
in thread Output should have multiple segments
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |