Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unused tags research #99

Open
pgherveou opened this issue Nov 16, 2011 · 0 comments
Open

unused tags research #99

pgherveou opened this issue Nov 16, 2011 · 0 comments

Comments

@pgherveou
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant