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

template should accept an array #279

Open
JorisAerts opened this issue Oct 23, 2020 · 0 comments
Open

template should accept an array #279

JorisAerts opened this issue Oct 23, 2020 · 0 comments
Milestone

Comments

@JorisAerts
Copy link

JorisAerts commented Oct 23, 2020

It makes no sense that template only accepts a string, which is either a built-in template or a path to a single file.

Currently, it takes me 4 cycles of compiling to generate 4 nunjuck files. During each of these cycles, all the font files get re-generated. Therefore, template should also accept an array of fast-globs.

Possibly, a step even further, is to just define a folder reference, where every .njk file gets compiled, while the rest gets copied. Recursive of course.

It would then make more sense to have built-in templates which can then be complete folders.

This is exactly what I am doing currently. I have a bunch of .njk files, referring to each other for example.
I'm generating

  • SCSS variables
  • SCSS font file, using these variables
  • CSS file
  • demo.html, which uses the CSS file
@jimmyandrade jimmyandrade added this to To do in webfont project via automation Oct 23, 2020
@jimmyandrade jimmyandrade added this to the next milestone Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

2 participants