LT-253: Creating dynamic form components
This commit is contained in:
1 parent
88f737644f
commit
cb875b1913
72 files changed
+1169
-126
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
});
|
||||
Reference in new issue
Block a user