eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

Setting `templateEngineOverride` in directory data file has no effect

Open thejohnfreeman opened this issue 6 years ago • 5 comments

See: https://github.com/thejohnfreeman/11ty.thejohnfreeman.com/blob/data-template-override/src/blog/blog.json

I expected I could change the templateEngineOverride in my directory data file the same way I could change layout, but it has no effect. It doesn't matter if I choose false, "md", or ["md"].

thejohnfreeman avatar Mar 13 '19 15:03 thejohnfreeman

Ah, yep. I would expect that you can do this but this is (I believe unnecessarily) just limited to front matter data at the moment.

zachleat avatar Mar 21 '19 22:03 zachleat

@thejohnfreeman Your link (https://github.com/thejohnfreeman/11ty.thejohnfreeman.com/blob/data-template-override/src/blog/blog.json) resolves to 404 on Github:

image

@zachleat you said:

I would expect that you can do this but this is (I believe unnecessarily) just limited to front matter data at the moment.

So is this a bug as the tag implies, or rather a feature request?

samuelpath avatar Mar 03 '20 15:03 samuelpath

In fact, the whole repo vanished.

Ryuno-Ki avatar Mar 05 '20 12:03 Ryuno-Ki

I need to refresh this Issue.

i have in my blog directory a blog.yaml(can also be a json) with templateEngineOverride: njk,md but it will not respected, only on the blog post file self it will respected.

Would love to see this in the next release fixed.

Thank you!

Dexus avatar May 12 '20 13:05 Dexus

Just FYI we needn’t a repro here, I already know where this is coming from.

One complication here is layouts—it’s almost as though we need the full data cascade but ignore layout front matter—hmm.

zachleat avatar Oct 26 '20 14:10 zachleat