It has occurred to me that one could write an Ansible role which would take a yaml file defining the requirements of a node, including the name, field names and types, and so on, and it would automatically generate skeleton js and html files for the node. Would that be a worthwhile thing to do? Alternatively I expect there are other template expansion applications which would do something similar.
Perhaps someone has already done something like that.
The difficult bit would be writing it so that one could amend the yaml file and run it again and it would update the bits it has control over, without messing up other stuff added. Perhaps that would not be possible, I don't know.