You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. We are thinking about excluding some specific constructions from parsing - for example loops. I saw there are limitation abilities in "Safe parser" documentation section https://github.com/lunet-io/scriban/blob/master/doc/runtime.md#safe-runtime which can help to limit them, but is there valid way to forbid some of them at all? Thanks.
The text was updated successfully, but these errors were encountered:
Unfortunately, there is nothing builtin. You can always iterate on the AST and remove the loops (but there is no a visitor pattern currently provided, so you have to manually go through the statements). If you feel to have this at parse time, feel free to send a PR, modifying the ParserOptions and the Parser to discard loop after parsing them (and log an error).
Hello. We are thinking about excluding some specific constructions from parsing - for example loops. I saw there are limitation abilities in "Safe parser" documentation section https://github.com/lunet-io/scriban/blob/master/doc/runtime.md#safe-runtime which can help to limit them, but is there valid way to forbid some of them at all? Thanks.
The text was updated successfully, but these errors were encountered: