Skip to content

Commit 9bb7fbf

Browse files
Merge pull request #1968 from Shopify/shopify-dev-docs-formatting
Inline some information that previously lived at category level
2 parents 9bd408f + 8555fd8 commit 9bb7fbf

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

lib/liquid/tags/assign.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ module Liquid
99
# Creates a new variable.
1010
# @liquid_description
1111
# You can create variables of any [basic type](/docs/api/liquid/basics#types), [object](/docs/api/liquid/objects), or object property.
12+
#
13+
# > Caution:
14+
# > Predefined Liquid objects can be overridden by variables with the same name.
15+
# > To make sure that you can access all Liquid objects, make sure that your variable name doesn't match a predefined object's name.
1216
# @liquid_syntax
1317
# {% assign variable_name = value %}
1418
# @liquid_syntax_keyword variable_name The name of the variable being created.

lib/liquid/tags/capture.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ module Liquid
99
# Creates a new variable with a string value.
1010
# @liquid_description
1111
# You can create complex strings with Liquid logic and variables.
12+
#
13+
# > Caution:
14+
# > Predefined Liquid objects can be overridden by variables with the same name.
15+
# > To make sure that you can access all Liquid objects, make sure that your variable name doesn't match a predefined object's name.
1216
# @liquid_syntax
1317
# {% capture variable %}
1418
# value

lib/liquid/tags/decrement.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ module Liquid
77
# @liquid_name decrement
88
# @liquid_summary
99
# Creates a new variable, with a default value of -1, that's decreased by 1 with each subsequent call.
10+
#
11+
# > Caution:
12+
# > Predefined Liquid objects can be overridden by variables with the same name.
13+
# > To make sure that you can access all Liquid objects, make sure that your variable name doesn't match a predefined object's name.
1014
# @liquid_description
1115
# Variables that are declared with `decrement` are unique to the [layout](/themes/architecture/layouts), [template](/themes/architecture/templates),
1216
# or [section](/themes/architecture/sections) file that they're created in. However, the variable is shared across

lib/liquid/tags/increment.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ module Liquid
77
# @liquid_name increment
88
# @liquid_summary
99
# Creates a new variable, with a default value of 0, that's increased by 1 with each subsequent call.
10+
#
11+
# > Caution:
12+
# > Predefined Liquid objects can be overridden by variables with the same name.
13+
# > To make sure that you can access all Liquid objects, make sure that your variable name doesn't match a predefined object's name.
1014
# @liquid_description
1115
# Variables that are declared with `increment` are unique to the [layout](/themes/architecture/layouts), [template](/themes/architecture/templates),
1216
# or [section](/themes/architecture/sections) file that they're created in. However, the variable is shared across

0 commit comments

Comments
 (0)