Make tag and attribute generation hookable