I figured this would be easily done in the template_preprocess_html function, but I haven't found a way to do it... yet.
I need to add the content type machine name to a "data-init" attribute in the body tag. How can this be done exactly?
End result: <body ... data-init="content_type">