-
From the document: let template = "Handlebars <b>{{doesWhat}}</b> precompiled!";
let Handlebars = require("handlebars");
let compiled = Handlebars.precompile(template);
console.log(compiled); The |
Beta Was this translation helpful? Give feedback.
Answered by
jaylinski
Dec 4, 2021
Replies: 1 comment 2 replies
-
You can read a file via |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jaylinski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can read a file via
fs
, see https://nodejs.org/en/knowledge/file-system/how-to-read-files-in-nodejs/.