mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 11:20:41 -07:00
README: Use newer hash syntax for the error_mode parse option
This commit is contained in:
@@ -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`:
|
If you want to set the error mode only on specific templates you can pass `:error_mode` as an option to `parse`:
|
||||||
```ruby
|
```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.
|
This is useful for doing things like enabling strict mode only in the theme editor.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user