How to use the scan function from hogan.js
Find comprehensive JavaScript hogan.js.scan code examples handpicked from public code repositorys.
81 82 83 84 85 86 87 88 89 90if (!cscan || cscan.mt<sta.mtime.valueOf()) { log("refreshing",ofile); // do actual compile fs.readFile(tfile,safe.sure(cb, function (content) { var ttext = content.toString(); var scan = hogan.scan(ttext); var partials = _(scan) .filter(function(item) { return item.tag == '>'; }) .map(function(item) { return item.n.replace(' this',''); }) .without(file)
hogan.js.compile is the most popular function in hogan.js (710 examples)