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
I'm attempting to make my own sassdoc theme using Nunjucks - and have used the theme generator (yo sassdoc-theme:nunjucks) to create a Nunjucks boilerplate. However I am struggling to add filters or any config to Nunjucks.
In the themeleon-nunjucks repo (deprecated) this is documentation which includes some customisation, specifically it shows:
t.nunjucks.configure('views', options);
But this now all seems superseded now that consolidate.js is used to handle template engines. As doing this results in:
» [ERROR] TypeError: t.nunjucks.configure is not a function
I've tried to include my own nunjucks, so I can add config settings etc. to it - but haven't really found a way to successfully then generate the html views when doing so.
Anyone have any ideas or an alternative solution to get things up and running?
The text was updated successfully, but these errors were encountered:
I'm attempting to make my own sassdoc theme using Nunjucks - and have used the theme generator (
yo sassdoc-theme:nunjucks
) to create a Nunjucks boilerplate. However I am struggling to add filters or any config to Nunjucks.In the themeleon-nunjucks repo (deprecated) this is documentation which includes some customisation, specifically it shows:
t.nunjucks.configure('views', options);
But this now all seems superseded now that consolidate.js is used to handle template engines. As doing this results in:
» [ERROR] TypeError: t.nunjucks.configure is not a function
I've tried to include my own
nunjucks
, so I can add config settings etc. to it - but haven't really found a way to successfully then generate the html views when doing so.Anyone have any ideas or an alternative solution to get things up and running?
The text was updated successfully, but these errors were encountered: