mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-29 15:15:23 -07:00
docs: add missing tag/filter links on sidebar/table, #482
This commit is contained in:
@@ -84,6 +84,8 @@ tags:
|
|||||||
cycle: cycle.html
|
cycle: cycle.html
|
||||||
decrement: decrement.html
|
decrement: decrement.html
|
||||||
echo: echo.html
|
echo: echo.html
|
||||||
|
else: if.html
|
||||||
|
elsif: if.html
|
||||||
for: for.html
|
for: for.html
|
||||||
if: if.html
|
if: if.html
|
||||||
include: include.html
|
include: include.html
|
||||||
@@ -94,6 +96,7 @@ tags:
|
|||||||
render: render.html
|
render: render.html
|
||||||
tablerow: tablerow.html
|
tablerow: tablerow.html
|
||||||
unless: unless.html
|
unless: unless.html
|
||||||
|
when: case.html
|
||||||
|
|
||||||
api:
|
api:
|
||||||
quick_entry:
|
quick_entry:
|
||||||
|
|||||||
@@ -9,10 +9,11 @@ There's 40+ filters supported by LiquidJS. These filters can be categorized into
|
|||||||
|
|
||||||
Categories | Filters
|
Categories | Filters
|
||||||
--- | ---
|
--- | ---
|
||||||
Math | plus, minus, modulo, times, floor, ceil, round, divided_by, abs
|
Math | plus, minus, modulo, times, floor, ceil, round, divided_by, abs, at_least, at_most
|
||||||
String | append, prepend, capitalize, upcase, downcase, strip, lstrip, rstrip, strip_newlines, split, replace, replace_first, remove, remove_first, truncate, truncatewords
|
String | append, prepend, capitalize, upcase, downcase, strip, lstrip, rstrip, strip_newlines, split, replace, replace_first, remove, remove_first, truncate, truncatewords
|
||||||
HTML/URI | escape, escape_once, url_encode, url_decode, strip_html, newline_to_br
|
HTML/URI | escape, escape_once, url_encode, url_decode, strip_html, newline_to_br
|
||||||
Array | slice, map, sort, sort_natural, uniq, where, first, last, join, reverse, concat
|
Array | slice, map, sort, sort_natural, uniq, where, first, last, join, reverse, concat, compact, size
|
||||||
Date | date
|
Date | date
|
||||||
|
Misc | default, json
|
||||||
|
|
||||||
[shopify/liquid]: https://github.com/Shopify/liquid
|
[shopify/liquid]: https://github.com/Shopify/liquid
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ Category | Purpose | Tags
|
|||||||
--- | --- | ---
|
--- | --- | ---
|
||||||
Iteration | iterate over a collection | for, cycle, tablerow
|
Iteration | iterate over a collection | for, cycle, tablerow
|
||||||
Control Flow | control the execution branch of template rendering | if, unless, elsif, else, case, when
|
Control Flow | control the execution branch of template rendering | if, unless, elsif, else, case, when
|
||||||
Variable | define and alter variables | assign, increment, decrement
|
Variable | define and alter variables | assign, increment, decrement, capture, echo
|
||||||
File | include another template or extend a layout template | render, include, layout
|
File | include another template or extend a layout template | render, include, layout
|
||||||
Language | temporarily disable LiquidJS syntax | raw, comment
|
Language | temporarily disable LiquidJS syntax | raw, comment, liquid
|
||||||
|
|
||||||
[shopify/liquid]: https://github.com/Shopify/liquid
|
[shopify/liquid]: https://github.com/Shopify/liquid
|
||||||
|
|||||||
@@ -9,10 +9,11 @@ LiquidJS 共支持 40+ 个过滤器,可以分为如下几类:
|
|||||||
|
|
||||||
类别 | 过滤器
|
类别 | 过滤器
|
||||||
--- | ---
|
--- | ---
|
||||||
数学 | plus, minus, modulo, times, floor, ceil, round, divided_by, abs
|
数学 | plus, minus, modulo, times, floor, ceil, round, divided_by, abs, at_least, at_most
|
||||||
字符串 | append, prepend, capitalize, upcase, downcase, strip, lstrip, rstrip, strip_newlines, split, replace, replace_first, remove, remove_first, truncate, truncatewords
|
字符串 | append, prepend, capitalize, upcase, downcase, strip, lstrip, rstrip, strip_newlines, split, replace, replace_first, remove, remove_first, truncate, truncatewords
|
||||||
HTML/URI | escape, escape_once, url_encode, url_decode, strip_html, newline_to_br
|
HTML/URI | escape, escape_once, url_encode, url_decode, strip_html, newline_to_br
|
||||||
数组 | slice, map, sort, sort_natural, uniq, wheres, first, last, join, reverse, concat
|
数组 | slice, map, sort, sort_natural, uniq, wheres, first, last, join, reverse, concat, compact, size
|
||||||
日期 | date
|
日期 | date
|
||||||
|
其他 | default, json
|
||||||
|
|
||||||
[shopify/liquid]: https://github.com/Shopify/liquid
|
[shopify/liquid]: https://github.com/Shopify/liquid
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ LiquidJS 支持十几个过滤器,可以分为如下几类:
|
|||||||
--- | --- | ---
|
--- | --- | ---
|
||||||
迭代 | 遍历一个集合 | for, cycle, tablerow
|
迭代 | 遍历一个集合 | for, cycle, tablerow
|
||||||
控制流 | 控制模板渲染的执行分支 | if, unless, elif, else, case, when
|
控制流 | 控制模板渲染的执行分支 | if, unless, elif, else, case, when
|
||||||
变量 | 定义和修改变量 | assign, increment, decrement
|
变量 | 定义和修改变量 | assign, increment, decrement, capture, echo
|
||||||
文件 | 引入或继承其他模板 | render, include, layout
|
文件 | 引入或继承其他模板 | render, include, layout
|
||||||
语言 | 暂时禁用 Liquid 语法 | raw, comment
|
语言 | 暂时禁用 Liquid 语法 | raw, comment, liquid
|
||||||
|
|
||||||
[shopify/liquid]: https://github.com/Shopify/liquid
|
[shopify/liquid]: https://github.com/Shopify/liquid
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ export * from './math'
|
|||||||
export * from './url'
|
export * from './url'
|
||||||
export * from './array'
|
export * from './array'
|
||||||
export * from './date'
|
export * from './date'
|
||||||
export * from './object'
|
export * from './misc'
|
||||||
export * from './string'
|
export * from './string'
|
||||||
|
|||||||
Reference in New Issue
Block a user