inja icon indicating copy to clipboard operation
inja copied to clipboard

mixed functions do not work

Open Gcaufy opened this issue 1 year ago • 0 comments

LIMIT {{ default(page.PageIndex, 0) * default(page.PageSize, 20) }}, {{ default(page.PageSize, 20) }})

This works well, getting LIMIT 0, 20

LIMIT {{ default(page.PageIndex, 0) * min([default(page.PageSize, 20), 200]) }}, {{ min([default(page.PageSize, 20), 200]) }})

This one throw an error exception=[inja.exception.parser_error] (at 15:69) unknown function default

Gcaufy avatar May 06 '23 08:05 Gcaufy