Skip to content

guychouk/temple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Temple: my templating "engine"

This is a program that I use as a templating engine for my website: https://guycho.uk.

It reads a directory with Markdown files (which may include a YAML frontmatter), parses these .md files, reads a bunch of templates defined in a templates.html file, and generates HTML along with a CSS file for syntax highlighting in code blocks, all done using goldmark and chroma.

Here's how I use it to generate the HTML for my notes:

./temple --output ./public --templates ./src/templates.html notes

This is a minimal replacement for static site generators such as hugo.

I mainly wrote this to serve my needs and to see if I can do it. Not only was it easy, it was quite fun as well ยฏ\(ใƒ„)/ยฏ.

About

๐Ÿ• A mini template engine for my website

Resources

License

Stars

Watchers

Forks

Languages