Initial commit
Initial commit Add lua template
This commit is contained in:
9
PROMPT.md
Normal file
9
PROMPT.md
Normal file
@@ -0,0 +1,9 @@
|
||||
> 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
|
||||
|
||||
Reference in New Issue
Block a user