3 ms·
I agree with this. Honestly, it's super simple assuming you want to convert Markdown files to HTML. You can also leverage 3rd party libraries to do the heavy l
by izolate 7y ago
I agree with this. Honestly, it's super simple assuming you want to convert Markdown files to HTML.
You can also leverage 3rd party libraries to do the heavy lifting of:
1) Reading local file tree (the IO/FS module of your $LANGUAGE standard lib will suffice)
2) Parsing front matter (parsing the YAML block of meta at the top of the Markdown file)
3) Transforming Markdown to HTML (plenty of good libraries)
4) Using HTML templates (also plenty to choose from)
I don't think it's appropriate to link to my site here but if you're interested, I wrote a blog post on how to build your own static site generator. Link is in the bio.