This repository was archived by the owner on Dec 10, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ var engine_handlebars = {
36
36
findListItemsRE : / ( { { # ( ) ? ) ( l i s t ( I | i ) t e m s .) ( o n e | t w o | t h r e e | f o u r | f i v e | s i x | s e v e n | e i g h t | n i n e | t e n | e l e v e n | t w e l v e | t h i r t e e n | f o u r t e e n | f i f t e e n | s i x t e e n | s e v e n t e e n | e i g h t e e n | n i n e t e e n | t w e n t y ) ( ) ? } } / g,
37
37
38
38
// render it
39
- renderPattern : function renderPattern ( template , data , partials ) {
39
+ renderPattern : function renderPattern ( pattern , data , partials ) {
40
40
if ( partials ) {
41
41
Handlebars . registerPartial ( partials ) ;
42
42
}
43
- var compiled = Handlebars . compile ( template ) ;
43
+ var compiled = Handlebars . compile ( pattern . extendedTemplate ) ;
44
44
return compiled ( data ) ;
45
45
} ,
46
46
@@ -73,9 +73,9 @@ var engine_handlebars = {
73
73
74
74
// given a pattern, and a partial string, tease out the "pattern key" and
75
75
// return it.
76
- findPartialKey : function ( partialString ) {
77
- var partialKey = partialString . replace ( this . findPartialsRE , '$1' ) ;
78
- return partialKey ;
76
+ findPartial : function ( partialString ) {
77
+ var partial = partialString . replace ( this . findPartialsRE , '$1' ) ;
78
+ return partial ;
79
79
}
80
80
} ;
81
81
You can’t perform that action at this time.
0 commit comments