mirror of
https://github.com/Shopify/liquid.git
synced 2025-08-10 00:00:35 -04:00
README: Use newer hash syntax for the error_mode parse option
This commit is contained in:
parent
db106ae058
commit
0e14d539a3
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user