README: Use newer hash syntax for the error_mode parse option

This commit is contained in:
Dylan Thacker-Smith 2021-09-16 10:15:45 -04:00
parent db106ae058
commit 0e14d539a3

View File

@ -69,7 +69,7 @@ Liquid::Template.error_mode = :lax # The default mode, accepts almost anything.
If you want to set the error mode only on specific templates you can pass `:error_mode` as an option to `parse`:
```ruby
Liquid::Template.parse(source, :error_mode => :strict)
Liquid::Template.parse(source, error_mode: :strict)
```
This is useful for doing things like enabling strict mode only in the theme editor.