How to use the renderFile function from jade
Find comprehensive JavaScript jade.renderFile code examples handpicked from public code repositorys.
GitHub: zhoutony/html5

174 175 176 177 178 179 180
An options object (see above), also used as the locals object returnsstring The resulting html string var jade = require('jade'); var html = jade.renderFile('path/to/file.jade', options); // ...
jade.compile is the most popular function in jade (34 examples)