mauricemach / coffeekup

Markup as CoffeeScript.
coffeekup.org
MIT License
1.26k stars 83 forks source link

unused tags research #99

Open pgherveou opened 12 years ago

pgherveou commented 12 years ago

Hello When looking for unused tag to strip them out from the template function, coffeekup look for a match of the tag wouldn't it be more accurate to look for a function call tagname + "(" ? what do you think ?

301 ...
for t in coffeekup.tags
  call = t + "("
  if template.indexOf(call) > -1 or hardcoded_locals.indexOf(call) > -1
    tags_used.push t