Skip to content

Commit 4f66498

Browse files
Move filledSlots variable
1 parent be27e21 commit 4f66498

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ let processCounter = 0;
166166
* @return {Object} PostHTML tree
167167
*/
168168
function processTree(options) {
169-
const filledSlots = {};
170-
171169
return (tree, messages) => {
172170
log(`Processing tree number ${processCounter}..`, 'processTree');
173171

@@ -176,6 +174,8 @@ function processTree(options) {
176174
}
177175

178176
match.call(tree, options.matcher, currentNode => {
177+
const filledSlots = {};
178+
179179
log(`Match found for tag "${currentNode.tag}"..`, 'processTree');
180180

181181
if (!currentNode.attrs) {
@@ -212,6 +212,10 @@ function processTree(options) {
212212
// Reset options.expressions.locals and keep aware locals
213213
options.expressions.locals = {...options.props, ...aware};
214214

215+
if (componentPath.endsWith("interest.html")) {
216+
console.error(filledSlots)
217+
console.error('------------------')
218+
}
215219
const {attributes, props} = processProps(currentNode, nextNode, filledSlots, options, componentPath, processCounter);
216220

217221
options.expressions.locals = attributes;

0 commit comments

Comments
 (0)