Closed ghost closed 3 years ago
You can pass layout = false
on the render options to disable it for that request, or you can set layout = false
on on app instance to disable it by default for all requests
only with this code for example?
local lapis = require("lapis")
local app = lapis.Application()
app:enable("etlua")
local layout = false
only with this code for example?
local lapis = require("lapis") local app = lapis.Application() app:enable("etlua") local layout = false
In this example you create a local variable named layout and set it to false, this will have no effect on anything related to lapis.
You can change the layout setting on the app in your example code like so:
app.layout = false
thanks leafo it worked, I'm still new to lua, greetings and hugs
@leafo what is the difference of types.numeric
and types.integer
?
and in the validation functions you can tell me an example of type: String
I can't understand how it works: 'c
@leafo please set into documentation that types.numeric
is a TINYINT
I am using the template system with lua but lapis adds html code by default, do you know how I can delete that html code?, for example: