bkiers / Liqp

An ANTLR based 'Liquid Template' parser and rendering engine.
MIT License
165 stars 94 forks source link

Added raiseExceptionsInStrictMode flag and recording errors #169

Closed bkiers closed 4 years ago

bkiers commented 4 years ago

When setting RenderSettings.raiseExceptionsInStrictMode to false (default set. tot true), then in strict mode, no exception will be thrown, but the exception will be recorded and can be retrieved by the method Template.errors(). This is exactly how Ruby's Liquid works.

Fixes #167

JakeWharton commented 4 years ago

Thanks again!