originally a fork of breckinloggins/ngtemplate, see README.md for details