page URL : - https://mukul0x9.pages.dev/blog/tiny-ssg/
I wanted to understand how template engines and markdown parsers work internally.
The project explores:
- compiling templates into Python functions using
exec() - block + inline markdown parsing
- simple AST construction
- stack-based inline parsing for nested formatting
- rendering the AST into HTML