Port of https://github.com/johnlindquist/angularjs-plugin to yasnippets