Yes, perhaps it will easier to have a config option like `ckanext.geodatagov.web_formats = html php ...`
Use it on a helper function though.