Try
var templateContent = fs.readFileSync(path.join(__dirname, '../templates') + '/my-template.html', 'utf8');
More Related Contents:
- How to run a shell script at startup
- Best practices when running Node.js with port 80 (Ubuntu / Linode) [closed]
- Uninstall Node.JS using Linux command line?
- node.js: cannot find module ‘request’
- How to compile/install node.js(could not configure a cxx compiler!) (Ubuntu).
- How to pass password to scp?
- How to merge two files using AWK? [duplicate]
- Finding which process was killed by Linux OOM killer [closed]
- The difference between fork(), vfork(), exec() and clone()
- curl: (6) Could not resolve host: google.com; Name or service not known
- Return value of sed for no match
- Why data and stack segments are executable?
- Using gdb to single-step assembly code outside specified executable causes error “cannot find bounds of current function”
- Run multiple commands at once in the same terminal
- how to get MouseMove and MouseClick in bash?
- Removing Control Characters from a File
- Bash script execution with and without shebang in Linux and BSD
- Variable in Bash Script that keeps it value from the last time running
- limiting memory usage in R under linux
- How to single step ARM assembly in GDB on QEMU?
- How do I get cURL to not show the progress bar?
- git submodule update failed with ‘fatal: detected dubious ownership in repository at’
- Linux: remove file extensions for multiple files
- Joining multiple fields in text files on Unix
- How do I delete all lines in a file starting from after a matching line?
- Should I use libc++ or libstdc++? [closed]
- Linux shell sort file according to the second column?
- How do I get amount of queued data for UDP socket?
- Executing a bash script upon file creation
- What does “ulimit -s unlimited” do?