/templates/helpers/encodeUriComponent.js
JavaScript | 11 lines | 7 code | 1 blank | 3 comment | 0 complexity | 6b83c44c460d45469c8bf46e81e68477 MD5 | raw file
Possible License(s): Apache-2.0, MIT, BSD-3-Clause, GPL-2.0
- /**
- * Created by Duy A. Nguyen on 3/30/2014.
- */
- define('templates/helpers/encodeUriComponent', ['hbs/handlebars'], function (Handlebars, moment) {
- var f = function (input) {
- return encodeURIComponent(input);
- };
- Handlebars.registerHelper('encodeUriComponent', f);
-
- return f;
- });