What you’re talking about has nothing to do with protocols, they’re just ways of generating HTML using JavaScript. You have a library that runs a function that looks for files of some specific file type and replaces stuff in them with data you provide, then returns HTML.
REST says that each resource should have it’s own identifier (eg a uri). That resource could be anything, but assuming you have a node server application, the views generated here using one of those templating languages would be HTML, so the resources at the endpoints would be HTML files.