I had a look at calls to _preprocess_html
and _process_html
and what they do in core. I've listed what we need to provide and a summary of existing implementations.
It seems that everything existing in core can be potentially solved by:
- Providing the ability to add/modify attributes to the
<body>
tag and the<html>
tag. Most of the time, it's class attributes, but RDFa will have other needs. - Better asset management (CSS/JS). Preprocessors sometimes call
drupal_add_js
, etc. We're already talking about this in core. - Providing an API for theme hook/template suggestions outside of preprocessors. (There's an issue for this)
- Providing the ability to add/modify
and
tags, and thetag, all within
. This is on sdboyer's radar.