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
90
if (!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)
fork icon0
star icon0
watch icon0