You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In markdown files, I extensively use the Vuepress "import code snippet" syntax, which allows importing some delimited part of a code file as a code snippet (see vuejs/vuepress#2225).
Would it be possible for me to write a similar plugin for eleventy?
Context
I'm looking to migrate one of my websites, fullweb.dev (sources here), from Vuepress to a more "flexible" approach.
Meaning:
A. using a static site generator (like eleventy) only for the actual static parts, written in markdown
Some of these markdown files are also used to generate some other formats (like .odt) via Pandoc.
So, I could simply use pandoc -F pandoc-import-code src/my-source-file.md -o dist/my-fragment.html to generate the HTML fragments, and then write the whole website myself, but I would like to give a try a more complete solution allowing me to do everything Vuepress already does (e.g. "dev server watch" mode and routing), and more. Inspired by open-wc/open-wc#1594, I would like to give a try to Eleventy, even if I would like to avoid njk files as much as possible.
Unfortunately this issue slipped under the radar—I’m finally circling back through some of the old issues on the tracker but I’d love a confirmation that this old one is still relevant before I start debugging! If I don’t hear anything in the next two weeks, I’ll likely close it as stale—sorry (and thank you!)
Question
In markdown files, I extensively use the Vuepress "import code snippet" syntax, which allows importing some delimited part of a code file as a code snippet (see vuejs/vuepress#2225).
Would it be possible for me to write a similar plugin for eleventy?
Context
I'm looking to migrate one of my websites, fullweb.dev (sources here), from Vuepress to a more "flexible" approach.
Meaning:
A. using a static site generator (like eleventy) only for the actual static parts, written in markdown
Some of these markdown files are also used to generate some other formats (like .odt) via Pandoc.
So, I could simply use
pandoc -F pandoc-import-code src/my-source-file.md -o dist/my-fragment.html
to generate the HTML fragments, and then write the whole website myself, but I would like to give a try a more complete solution allowing me to do everything Vuepress already does (e.g. "dev server watch" mode and routing), and more. Inspired by open-wc/open-wc#1594, I would like to give a try to Eleventy, even if I would like to avoid njk files as much as possible.B. using VanillaJS/lit-html for the dynamic parts
For example, /inventory/:name.
Right now, It's a Vue SFC and requires some tricks for routing.
I'm new to Eleventy, so I welcome any comments and suggestions.
The text was updated successfully, but these errors were encountered: