Skip to content

Instantly share code, notes, and snippets.

@nstarke
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nstarke/97798a4faf4e3afb60c7 to your computer and use it in GitHub Desktop.
Save nstarke/97798a4faf4e3afb60c7 to your computer and use it in GitHub Desktop.
EmberJS one-liner to find unsafe handlebars parameters
# searches for {{{ or }}} in all .handlebars or .hbs files
# {{{ and }}} signify unsafe template parameters in EmberJS
# tested on OS X 10.10
egrep -r --include "*.handlebars" --include "*.hbs" "\{\{\{|\}\}\}" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment