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
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function addParentContext(data, currentContext) {
30
30
}
31
31
32
32
_ . mixin ( {
33
- renderAtomicPartial : function ( partialKey , data , currentContext ) {
33
+ renderNamedPartial : function ( partialKey , data , currentContext ) {
34
34
return _ . renderPartial ( partialRegistry [ partialKey ] , data , currentContext ) ;
35
35
} ,
36
36
renderPartial : function ( partial , dataIn , currentContext ) {
@@ -94,6 +94,9 @@ var engine_underscore = {
94
94
// such will throw very real exceptions that will shatter the whole build
95
95
// process if we don't handle them.
96
96
try {
97
+ // console.log('got here for pattern', pattern.patternName, pattern.extendedTemplate);
98
+ // console.log('testing:', _.template('<%- foo %>')({foo: 'bar'}));
99
+ // console.log('data:', data);
97
100
renderedHTML = compiled ( _ . extend ( data || { } , {
98
101
_allData : data ,
99
102
_partials : partials
@@ -103,7 +106,7 @@ var engine_underscore = {
103
106
console . log ( errorMessage ) ;
104
107
renderedHTML = `<h1>Error in underscore template ${ pattern . patternName } (${ pattern . relPath } )</h1><p>${ e . toString ( ) } </p>` ;
105
108
}
106
-
109
+
107
110
return renderedHTML ;
108
111
} ,
109
112
You can’t perform that action at this time.
0 commit comments