Skip to content

Pika-Software/gm_rant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gm_rant

Rant template language right in Garry's Mod

Currently this module is built with Rant 4 (4.0.0-alpha.33)

API

rant.VERSION = "x.y.z" -- Version of gm_rant module

-- Compiles rant code into program
-- Returns RantProgram on success
-- On failure returns nil and error string
rant.compile(code: string) -> RantProgram/nil, nil/string

-- Compiles and runs rant code. Returns program output or error
-- Arguments must consist of table with string key and any value
rant.run(code: string/RantProgram, args?: table) -> RantOutput/nil, nil/string