mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 09:05:13 -07:00
iain feedback
This commit is contained in:
@@ -843,7 +843,6 @@ module Liquid
|
|||||||
# - [`nil`](/api/liquid/basics#nil)
|
# - [`nil`](/api/liquid/basics#nil)
|
||||||
# @liquid_syntax variable | default: variable
|
# @liquid_syntax variable | default: variable
|
||||||
# @liquid_optional_param allow_false [boolean] Whether to use false values instead of the default.
|
# @liquid_optional_param allow_false [boolean] Whether to use false values instead of the default.
|
||||||
# @liquid_return [variable]
|
|
||||||
def default(input, default_value = '', options = {})
|
def default(input, default_value = '', options = {})
|
||||||
options = {} unless options.is_a?(Hash)
|
options = {} unless options.is_a?(Hash)
|
||||||
false_check = options['allow_false'] ? input.nil? : !Liquid::Utils.to_liquid_value(input)
|
false_check = options['allow_false'] ? input.nil? : !Liquid::Utils.to_liquid_value(input)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module Liquid
|
|||||||
# @liquid_public_docs
|
# @liquid_public_docs
|
||||||
# @liquid_type tag
|
# @liquid_type tag
|
||||||
# @liquid_category theme
|
# @liquid_category theme
|
||||||
# @liquid_name include
|
# @liquid_name render
|
||||||
# @liquid_summary
|
# @liquid_summary
|
||||||
# Renders a [snippet](/themes/architecture#snippets) or [app block](/themes/architecture/sections/section-schema#render-app-blocks).
|
# Renders a [snippet](/themes/architecture#snippets) or [app block](/themes/architecture/sections/section-schema#render-app-blocks).
|
||||||
# @liquid_description
|
# @liquid_description
|
||||||
|
|||||||
Reference in New Issue
Block a user