poga / actix-lua

Safe Lua Scripting Environment for Actix
MIT License
121 stars 13 forks source link

actix-lua-web framework #5

Closed naturallymitchell closed 6 years ago

naturallymitchell commented 6 years ago

This actix-lua-web framework gist has a more complex example that relies on serde-yaml and tera. Does it make sense?

poga commented 6 years ago

is the gist complete? I don't see anything related to serde-yaml or actix-lua.

naturallymitchell commented 6 years ago

yes. there are 2 content files, 2 template files, and 1 script file. here's a walkthrough of what I mean to show:

poga commented 6 years ago

Thanks 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.

poga commented 6 years ago

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.

poga commented 6 years ago

closing