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

---node frontmatter not documented #3284

Closed
mayank99 opened this issue May 15, 2024 · 5 comments
Closed

---node frontmatter not documented #3284

mayank99 opened this issue May 15, 2024 · 5 comments

Comments

@mayank99
Copy link
Contributor

mayank99 commented May 15, 2024

I was trying to use the Node frontmatter in the 3.0 alpha, and couldn't find any docs on it.

The closest thing I found was this section on custom JavaScript frontmatter: https://www.11ty.dev/docs/data-frontmatter-customize/#example-use-javascript-in-your-front-matter

On that note, I wonder why the built-in functionality uses ---node and not ---javascript. The latter seems more accurate, especially since 11ty can now run in alternative runtimes like Deno.

@mayank99
Copy link
Contributor Author

11ty can now run in alternative runtimes like Deno.

Actually I couldn't find any docs on this either. Is there an example somewhere?

I'm happy to contribute docs if I can understand how to use it.

@zachleat zachleat added this to the Eleventy 3.0.0 milestone May 24, 2024
@zachleat
Copy link
Member

Some discussion about this here: #2819

@zachleat
Copy link
Member

Deno information here: #3278 and slide 59–60 of this talk: https://www.zachleat.com/web/11tyconf-keynote-2024/

@mayank99
Copy link
Contributor Author

Some discussion about this here: #2819

Looking at that thread, this comment stands out to me:

some day, conceivably, there could be other JavaScript runtime that could be used to run Eleventy, and if you’re using something like Bun to run Eleventy, then calling this frontmatter type node seems a little weird. 🤔


Deno information here: #3278 and slide 59–60 of this talk: https://www.zachleat.com/web/11tyconf-keynote-2024/

I saw this but still couldn't figure out how to run in Deno (I was probably doing something wrong). A minimal example would be helpful.

@zachleat
Copy link
Member

zachleat commented May 30, 2024

I’m going through the issues closed on the 3.0 milestone and adding needs-documentation tags. Let’s use #2819 as the home base for the docs issue for this too.

Can you file a separate issue for your Deno issue? Maybe also have a look at #3278 which shows the command line command that I used to run against 11ty/eleventy-base-blog.

@zachleat zachleat closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants