leafo / lapis

A web framework for Lua and OpenResty written in MoonScript
http://leafo.net/lapis/
MIT License
3.12k stars 247 forks source link

Widgets and Layouts for Lua? #741

Closed eko234 closed 1 year ago

eko234 commented 3 years ago

I'm building and app using lua and lapis, and I would like to use widget based views, is there a way to use widgets in plain lua?, if it's not supported yet, could you give me some hint on how to go about it?, maybe there is some way using metatables.

eko234 commented 3 years ago

Or is there maybe a way to write lua code buy have my views in moonscript?

ryanford commented 3 years ago

It's not great but checkout #633 . Basically you can create wrapper factory functions that can create the precompiled moonscript classes.