-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrainybars.js
More file actions
40 lines (36 loc) · 901 Bytes
/
Copy pathbrainybars.js
File metadata and controls
40 lines (36 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Name: brainybars.js
* Description: A collection of useful helpers for handlebars
* Dependencies: Handlebars
*
* Author(s): Jonathan "Yoni" Knoll
* Version: 0.8.0
* Date: 2017-02-20
*
* ------------------------------------------
*
* WHAT'S INSIDE?
*
* ARRAY & LOOP HELPERS
* DATE/TIME HELPERS
* MISCELLANEOUS/CONVENIENCE HELPERS
* OPERATOR & CONDITIONAL HELPERS
* STRING HELPERS
*
*
* ------------------------------------------
*
*/
define([
'handlebars',
'./lib/collections',
'./lib/datetime',
'./lib/misc',
'./lib/operators',
'./lib/string'
], function(Handlebars, collectionsHelpers, datetimeHelpers, miscHelpers, operatorsHelpers, stringHelpers) {
[collectionsHelpers, datetimeHelpers, miscHelpers, operatorsHelpers, stringHelpers].forEach(function(helpers) {
Handlebars.registerHelper(helpers);
});
return Handlebars;
}); // define