You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems the above does not generate filter(s). I tried the following and it covers my use-case, though not sure whether this is ok in general. There seems to be an outdated ast format issue.
visitInclude: function(include) {
this.bufLine('include');
if (include.filters) {
include.filters.forEach(function(filter) {
if (filter.type === 'IncludeFilter') this.buffer(':' + filter.name);
}, this);
if (include.attrs) this.buffer(this.attrs(include.attrs));
}
this.buffer(' ');
this.visit(include.file);
this.visit(include.block);
},
visitRawInclude: function(include) {
this.bufLine('include');
if (include.filters) {
include.filters.forEach(function(filter) {
if (filter.type === 'IncludeFilter') this.buffer(':' + filter.name);
}, this);
if (include.attrs) this.buffer(this.attrs(include.attrs));
}
this.buffer(' ');
this.visit(include.file);
},
The text was updated successfully, but these errors were encountered:
ForbesLindesay
changed the title
support for rawInclude and upgrade to jade-walk 0.0.3
support for rawInclude and upgrade to pug-walk 0.0.3
Apr 3, 2016
An error is thrown when the ast contains a rawInclude.
Upgrading to pug-walk 0.0.3 and adding the following visit function seems to fix the issue:
Seems the above does not generate filter(s). I tried the following and it covers my use-case, though not sure whether this is ok in general. There seems to be an outdated ast format issue.
The text was updated successfully, but these errors were encountered: