Files
blog/PROMPT.md
Guus Waals 29502f6816 Initial commit
Initial commit

Add lua template
2025-10-24 19:24:07 +08:00

10 lines
1.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

> Can you create a rust web server application for my static blog, that includes cmark and parses inside the posts/ folder, it should generate an
index page that lists top say 50 posts, also serve an /all page that lists the same but not limited. each links to a /p/<post-name> where post name
matches the filename. The app should keep some internal state that is refreshed upon git tag changes, check the git version from the data folder
(which is also this project folder. Do this like in ~/Projects/lemons/src/tools/git_info/git_info.cpp) The internal state keeps track of all
articles and their creation dates (mock dates for now as we add this later). Feel free to create some example posts. Also the page serving should
be data driven like, all templates inside the templates/ folder act as a page, but we parse the and whenever we encounter $<tag arg=something
arg=other/> we treat this as some built in functionality and generate stuff, things this should support are $<post-html> for generated post html
$<post-list> with optional $<post-list limit=50> for the main page and $<include src="other.html"> for including other files inline. Thats all