'''Short description''' (Moved from another page. The feature request would be to have a nice mechanism for "contributing" stylesheets to a page from macros, somewhat like adding stylesheet definitions to a theme's `stylesheets` family of attributes. The output HTML would then incorporate these stylesheets and thus style macro-introduced HTML properly. Currently, I have to manually add stylesheet inclusion to various theme stylesheets such as `screen.css` in anticipation that the macro-related styles will be needed, but this isn't very desirable from a deployment perspective.) Is there a generic mechanism for macros (or anything not writing the output from scratch) to add stylesheet references to a page? This would solve deployment problems with extensions where they provide additional styles, but where such styles have to be incorporated somehow into existing themes. -- PaulBoddie <> and -- PaulBoddie <> A slightly reworded version of the above elicited the following response. I think no (i mean, no special mechanism; may be it will be added easily when plugins become classes), but you can add new styles via js. -- EugeneSyromyatnikov <> or you can use the html_head var. Below an example for arnica: {{{ html_head = ''' ''' % {"url_prefix_static": DefaultConfig.url_prefix_static} }}} ---- Using html_head places the style sheet near the top of the , not a good position if you are trying to override css. I have used page_header1 to load javascript. I think this may work for css as well. The placement for page_header1 is in the section just before the wiki page content. -- RogerHaase <> ---- CategoryFeatureRequest CategoryForMoin2