mirror of
https://github.com/kemko/liquid.git
synced 2026-01-03 16:55:40 +03:00
Tiny fixes
This commit is contained in:
@@ -4,11 +4,11 @@ title: Types
|
||||
|
||||
Liquid objects can have one of six types:
|
||||
|
||||
- [string](#string)
|
||||
- [number](#number)
|
||||
- [boolean](#boolean)
|
||||
- [nil](#nil)
|
||||
- [array](#array)
|
||||
- [String](#string)
|
||||
- [Number](#number)
|
||||
- [Boolean](#boolean)
|
||||
- [Nil](#nil)
|
||||
- [Array](#array)
|
||||
- [EmptyDrop](#emptydrop)
|
||||
|
||||
Liquid variables can be initialized by using the [assign](/tags/#assign) or [capture](/tags/#capture) tags.
|
||||
|
||||
6
index.md
6
index.md
@@ -28,11 +28,11 @@ For example, you can show basic content like a page title using a Liquid object:
|
||||
|
||||
In this case, Liquid is rendering the content of an object called `page.title`, and that object contains the text `Overview`.
|
||||
|
||||
[Filters](/filters) can change the way objects are printed.
|
||||
[Filters](/filters) can change the way objects are rendered.
|
||||
|
||||
### Tags
|
||||
|
||||
**Tags** create the logic for your template, including variable assignment, conditionals, and loops.
|
||||
**Tags** create the logic and control flow for your template, including variable assignments, conditionals, and loops.
|
||||
|
||||
Tags are denoted by curly braces and percent signs: `{% raw %}{%{% endraw %}` and `{% raw %}%}{% endraw %}`.
|
||||
|
||||
@@ -62,7 +62,7 @@ Hello Adam!
|
||||
{% endhighlight %}
|
||||
</div>
|
||||
|
||||
This conditional statement `if user` checks to see if an object called `user` exists. If the condition is *true* (that is, if `user` exists), Liquid shows any content that is contained between the `if` and `endif` tags.
|
||||
This conditional statement `if user` checks to see if an object called `user` exists. If the condition is *true* (that is, if there is a `user`), Liquid shows any content that is contained between the `if` and `endif` tags.
|
||||
|
||||
In this case, our user's `name` is Adam, so the template prints `Hello Adam!`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user