mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 03:10:39 -07:00
inline warning previuosly at category level
This commit is contained in:
@@ -9,6 +9,10 @@ module Liquid
|
|||||||
# Creates a new variable.
|
# Creates a new variable.
|
||||||
# @liquid_description
|
# @liquid_description
|
||||||
# You can create variables of any [basic type](/docs/api/liquid/basics#types), [object](/docs/api/liquid/objects), or object property.
|
# You can create variables of any [basic type](/docs/api/liquid/basics#types), [object](/docs/api/liquid/objects), or object property.
|
||||||
|
#
|
||||||
|
# > Caution:
|
||||||
|
# > Predefined Liquid objects can be overridden by variables with the same name.
|
||||||
|
# > To make sure that you can access all Liquid objects, make sure that your variable name doesn't match a predefined object's name.
|
||||||
# @liquid_syntax
|
# @liquid_syntax
|
||||||
# {% assign variable_name = value %}
|
# {% assign variable_name = value %}
|
||||||
# @liquid_syntax_keyword variable_name The name of the variable being created.
|
# @liquid_syntax_keyword variable_name The name of the variable being created.
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ module Liquid
|
|||||||
# Creates a new variable with a string value.
|
# Creates a new variable with a string value.
|
||||||
# @liquid_description
|
# @liquid_description
|
||||||
# You can create complex strings with Liquid logic and variables.
|
# You can create complex strings with Liquid logic and variables.
|
||||||
|
#
|
||||||
|
# > Caution:
|
||||||
|
# > Predefined Liquid objects can be overridden by variables with the same name.
|
||||||
|
# > To make sure that you can access all Liquid objects, make sure that your variable name doesn't match a predefined object's name.
|
||||||
# @liquid_syntax
|
# @liquid_syntax
|
||||||
# {% capture variable %}
|
# {% capture variable %}
|
||||||
# value
|
# value
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ module Liquid
|
|||||||
# @liquid_name decrement
|
# @liquid_name decrement
|
||||||
# @liquid_summary
|
# @liquid_summary
|
||||||
# Creates a new variable, with a default value of -1, that's decreased by 1 with each subsequent call.
|
# Creates a new variable, with a default value of -1, that's decreased by 1 with each subsequent call.
|
||||||
|
#
|
||||||
|
# > Caution:
|
||||||
|
# > Predefined Liquid objects can be overridden by variables with the same name.
|
||||||
|
# > To make sure that you can access all Liquid objects, make sure that your variable name doesn't match a predefined object's name.
|
||||||
# @liquid_description
|
# @liquid_description
|
||||||
# Variables that are declared with `decrement` are unique to the [layout](/themes/architecture/layouts), [template](/themes/architecture/templates),
|
# Variables that are declared with `decrement` are unique to the [layout](/themes/architecture/layouts), [template](/themes/architecture/templates),
|
||||||
# or [section](/themes/architecture/sections) file that they're created in. However, the variable is shared across
|
# or [section](/themes/architecture/sections) file that they're created in. However, the variable is shared across
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ module Liquid
|
|||||||
# @liquid_name increment
|
# @liquid_name increment
|
||||||
# @liquid_summary
|
# @liquid_summary
|
||||||
# Creates a new variable, with a default value of 0, that's increased by 1 with each subsequent call.
|
# Creates a new variable, with a default value of 0, that's increased by 1 with each subsequent call.
|
||||||
|
#
|
||||||
|
# > Caution:
|
||||||
|
# > Predefined Liquid objects can be overridden by variables with the same name.
|
||||||
|
# > To make sure that you can access all Liquid objects, make sure that your variable name doesn't match a predefined object's name.
|
||||||
# @liquid_description
|
# @liquid_description
|
||||||
# Variables that are declared with `increment` are unique to the [layout](/themes/architecture/layouts), [template](/themes/architecture/templates),
|
# Variables that are declared with `increment` are unique to the [layout](/themes/architecture/layouts), [template](/themes/architecture/templates),
|
||||||
# or [section](/themes/architecture/sections) file that they're created in. However, the variable is shared across
|
# or [section](/themes/architecture/sections) file that they're created in. However, the variable is shared across
|
||||||
|
|||||||
Reference in New Issue
Block a user