-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Allow includes directory to contain sub folders #72
Comments
Hey @paulrobertlloyd! Well, that’s disappointing—sorry! I assume you’re sticking with Liquid syntax there? I know it works as expected in Nunjucks. Note that there are a few minor differences between Ruby Liquid and the liquidjs library we’re using here (unfortunately). This looks to be one of them. I’ve filed issues upstream with them in the past and they’ve been very good about fixing! See also harttle/liquidjs#51 I’ll plan on filing one for this a little later (or you can, if you want to beat me to it). |
Filed in harttle/liquidjs#61 Thanks! |
The other option we have here is to expose an API to configure liquid rendering options so that individual applications could override |
Alright, I added 16 new tests for this, 9 of which are currently skipped in the test suite but will apply after harttle/liquidjs#61 is fixed. For now (after Eleventy 0.2.15 is released), you can use the Configuration API to enable Your
I’m tempted to make this the default, but want to make Jekyll migrations as easy as possible—so I’ll probably end up banking on this being easier if it’s fixed upstream in |
Closing this, filed a longer term issue for the upstream fix here if you’d like to subscribe: #73 |
Wow, thanks @zachleat! Still investigating 11ty, but if I were to migrate I’d likely move to using Nunjucks soon after. But in terms of being able to support Jekyll sites, I think this is a really helpful addition. Thanks again! |
Hey Zach! Trying this out, as I’ve long hoped for a good-as-Jekyll-but-in-Node static site generator, and this project looks very promising. In attempting to convert my Jekyll site, have come across an issue where it would appear that includes can’t be organised in sub-directories.
For example, in a document I have:
{% include form/contact %}
However, the following error suggests sub-directories are not recognised:
Failed to lookup form.liquid in: src/_includes
.Is this the case? If so, can I make a feature request to allow for the includes directory to contain sub-folders… or will that break things?
The text was updated successfully, but these errors were encountered: