How to use the render function from jade

Find comprehensive JavaScript jade.render code examples handpicked from public code repositorys.

163
164
165
166
167
168
169
170
171
172
An options object (see above), also used as the locals object
returnsstring
The resulting html string
var jade = require('jade');

var html = jade.render('string of jade', options);
// => '<string>of jade</string>'
jade.renderFile(filename, options)
filenamestring
The path to the jade file to render
fork icon21
star icon24
watch icon7