Add CSS-class to current node in module logic
Would hook_preprocess_node help you for this?

Example:

function mymodule_preprocess_node(&amp;$variables) {
  $variables['classes_array'][] = 'blah';
}


The variables array contains all information about the ndoe as well, so you can run logic to dictate which classes should be added to which node types/IDs etc.

If you run dpm (with the Devel module enabled) then you can print everything in that array that you can alter/add to.

I agree that $node-&gt;classes would be a really useful addition though.