mirror of
https://github.com/TangentFoxy/etlua.git
synced 2025-07-27 18:42:17 +00:00
render takes varargs
This commit is contained in:
@@ -233,10 +233,10 @@ class Parser
|
||||
|
||||
compile = Parser!\compile
|
||||
|
||||
render = (str, env) ->
|
||||
render = (str, ...) ->
|
||||
fn, err = compile(str)
|
||||
if fn
|
||||
fn env
|
||||
fn ...
|
||||
else
|
||||
nil, err
|
||||
|
||||
|
Reference in New Issue
Block a user