You can set the templates directory to anything in plugin.json, I think it defaults to just templates if you don't specify.
Them you match the path from views, so it would be templates/emails where you put them.
Is there any utility/method in NodeBB for preloading/loading template file *.tpl
(I need it as a String)?
Or fs
is a best practice for such task?
I'm curious about the same thing
templates.render ('tpl/name', {}, function() {
// templates.cache['tpl/name']
});
I think so anyways, I'm writing this from my phone