lapis icon indicating copy to clipboard operation
lapis copied to clipboard

A web framework for Lua and OpenResty written in MoonScript

Results 130 lapis issues
Sort by recently updated
recently updated
newest added

### Accept strings as well as functions Similar to how the return table of an action takes the require path of a view instead of the view itself, the router...

https://github.com/leafo/lapis/blob/d3a16d142f6127e8612178bf57209185b14e2d4e/lapis/nginx.moon#L77-L89 Lapis is checking `ngx.var.request_uri` for the request's uri, but this variable only points to the main request and uses a raw uri string which has some potential downsides (see...

OpenResty 1.19.3.1, Lapis 1.8.3. New project: ``` lapis new --lua wrote nginx.conf wrote mime.types wrote app.lua wrote models.lua ``` app.lua: ``` local lapis = require("lapis") local cached = require("lapis.cache").cached local...

At http://leafo.net/lapis/reference/html_generation.html#layouts there's only the Moonscript part. I don't understand how to build a widget in plain Lua, or where does `content_for()` look for content. I've tried adding `.lua` and...

Each migration now runs in a transaction, if the migration function errors a rollback will be issued.

I have a need for customizing mysql backend provided in the code I am aware of the set_backend("raw", function() end) option, tried it and got errors from unpack function in...

When I have two mysql data sources or Multiple data source,how to use lapis

Would there be interest in a feature that ensures all migrations have been run before contenting to load the app? I am essentially thinking that every key in the migrations...

Is Lapis appears to LUA 5.3 ?

Here's a quirky bug that I don't know how to actually resolve. The workaround is using raw parameterized queries. In Postgres, to address a table in another schema, it's prefixed...