Closed naturallymitchell closed 6 years ago
is the gist complete? I don't see anything related to serde-yaml or actix-lua.
yes. there are 2 content files, 2 template files, and 1 script file. here's a walkthrough of what I mean to show:
/post/50ee670c-1e2a-4ed7-8558-1dd6a87dbe8e
would read the content file with that uuid in the 'content' directory and render it using the document.json
templatetype: post
, and renders it using the document-list.json
templateThanks for the elaboration. Yes. It's definitely possible to create something like this.
It can be a good example about how to write a conventional web framework on top of actix-lua
. If anyone want to try, I'm willing to help.
I've added an example about using pure-lua to build a basic framework: https://github.com/poga/actix-lua/tree/master/examples/lua-web.
closing
This actix-lua-web framework gist has a more complex example that relies on serde-yaml and tera. Does it make sense?