Contents
Syntax
The syntax for
lua{options}(file-path) lua{options} { -- block of Lua code }
@lua{options}(file-path) @lua{options} { -- block of Lua code }
Description
The
Options
The following options are available for
option | description |
---|---|
do not return result | |
return result | |
parse block with language call is made from before running code with |
|
option | description |
f++ example
Examples of
lua { local vips = require "vips" local image = vips.Image.new_from_file("logo.png") image:resize(0.5):webpsave("logo.webp") }
n++ example
Example of
@lua { local vips = require "vips" local image = vips.Image.new_from_file("logo.png") image:resize(0.5):webpsave("logo.webp") }