Liquid
基礎概念
簡介
運算符
真值與假值
類型
Liquid 的變體
空白控制
標籤
控制流程
迭代
模板
變數
篩選器
abs
append
at_least
at_most
capitalize
ceil
compact
concat
date
default
divided_by
downcase
escape
escape_once
first
floor
join
last
lstrip
map
minus
modulo
newline_to_br
plus
prepend
remove
remove_first
remove_last
replace
replace_first
replace_last
reverse
round
rstrip
size
slice
sort
sort_natural
split
strip
strip_html
strip_newlines
sum
times
truncate
truncatewords
uniq
upcase
url_decode
url_encode
where
選單
at_most
將數字限制在最大值內。
輸入
{{
4
|
at_most
:
5
}}
{{
4
|
at_most
:
3
}}
輸出
4 3