Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit e1eaf46

Browse files
committed
Change the name of renderAtomicPartial to renderNamedPartial
1 parent d70e9fa commit e1eaf46

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/engine_underscore.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function addParentContext(data, currentContext) {
3030
}
3131

3232
_.mixin({
33-
renderAtomicPartial: function (partialKey, data, currentContext) {
33+
renderNamedPartial: function (partialKey, data, currentContext) {
3434
return _.renderPartial(partialRegistry[partialKey], data, currentContext);
3535
},
3636
renderPartial: function (partial, dataIn, currentContext) {
@@ -94,6 +94,9 @@ var engine_underscore = {
9494
// such will throw very real exceptions that will shatter the whole build
9595
// process if we don't handle them.
9696
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);
97100
renderedHTML = compiled(_.extend(data || {}, {
98101
_allData: data,
99102
_partials: partials
@@ -103,7 +106,7 @@ var engine_underscore = {
103106
console.log(errorMessage);
104107
renderedHTML = `<h1>Error in underscore template ${pattern.patternName} (${pattern.relPath})</h1><p>${e.toString()}</p>`;
105108
}
106-
109+
107110
return renderedHTML;
108111
},
109112

0 commit comments

Comments
 (0)