react-jade
Version:
Compile Jade to React JavaScript
14 lines (11 loc) • 375 B
JavaScript
;
var fs = require('fs');
var path = require('path');
var compileClient = require('./compile-client');
module.exports = compileFileClient;
function compileFileClient(filename, options) {
var str = fs.readFileSync(filename, 'utf8').toString();
var options = options || {};
options.filename = path.resolve(filename);
return compileClient(str, options);
}