Last active
August 29, 2015 14:14
-
-
Save twalker/08809a793f48aefec01f to your computer and use it in GitHub Desktop.
read-template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using stringify | |
// import foo from './foo.html' | |
// using brfs: | |
// var foo = require('fs').readFileSync('foo.html', 'utf8') | |
import fs from 'fs' | |
export default function read(path){ | |
return fs.readFileSync(path, 'utf8') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment