mirror of
https://github.com/moparisthebest/mail
synced 2024-08-13 16:43:47 -04:00
11 lines
262 B
JavaScript
11 lines
262 B
JavaScript
'use strict';
|
|
|
|
module.exports.register = function(Handlebars) {
|
|
|
|
// Customize this helper
|
|
Handlebars.registerHelper('stripFileExtension', function(str) {
|
|
var content = str.replace(/\.[^\.]*$/, '');
|
|
return new Handlebars.SafeString(content);
|
|
});
|
|
|
|
}; |