Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add filters/config to Nunjucks with Themeleon boilerplate #528

Open
darbymanning opened this issue Oct 29, 2018 · 1 comment
Open

Comments

@darbymanning
Copy link

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?

@pascalduez
Copy link
Member

Hi,

yeah let's forget about themeleon-nunjucks and the generator, we can't ensure everything still works as expected.

Instead you could have a look at themes using nunjuncks:
https://github.com/pascalduez/sassdoc-theme-literate
https://github.com/oddbird/sassdoc-theme-herman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants