Skip to content
Leonard Ramminger edited this page May 14, 2026 · 1 revision

Lua

Inline Lua

{{ lua "return upper(name)" }}

Block Lua

{{ lua:block }}
return "Hello " .. name
{{ endlua }}

Lua In Conditions

{{ if lua("return enabled == 'true'") }}ok{{ endif }}

{{ if lua:block }}
return enabled == 'true'
{{ endlua }}ok{{ endif }}

Helpers

  1. upper(value)
  2. lower(value)
  3. trim(value)
  4. starts_with(value, prefix)
  5. ends_with(value, suffix)

Limits

  1. lua_instruction_limit=100000
  2. lua_memory_limit_bytes=4194304

Sandbox

Blocked by default:

  1. os
  2. io
  3. debug
  4. package
  5. require
  6. dofile
  7. loadfile

Clone this wiki locally