ohif-viewer/Packages/ohif-core/helpers/string.js
2016-07-22 11:12:04 +02:00

17 lines
376 B
JavaScript

import { _ } from 'meteor/underscore';
import { Template } from 'meteor/templating';
/**
* Global Blaze UI helpers to work with Strings
*/
// Concatenate the give strings
Template.registerHelper('concat', (...args) => {
const values = _.initial(args, 1);
let result = '';
_.each(values, value => {
result += value || '';
});
return result;
});