diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-12-22 10:17:28 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-12-22 10:17:28 +0100 |
commit | 16af264360e48e8a833e9efa9ab8d194574dbc70 (patch) | |
tree | c50988f32ccf18df93ae7ab40be78e9459642818 /docs/templating/builtin.md | |
parent | febdd8a8bd26466509d03fe2d95aff97e7631c2f (diff) | |
parent | 64ccb6b00b4b63fa0e516d4e35351275b34f8c07 (diff) | |
download | gitbook-16af264360e48e8a833e9efa9ab8d194574dbc70.zip gitbook-16af264360e48e8a833e9efa9ab8d194574dbc70.tar.gz gitbook-16af264360e48e8a833e9efa9ab8d194574dbc70.tar.bz2 |
Merge branch 'master' into dream
Diffstat (limited to 'docs/templating/builtin.md')
-rw-r--r-- | docs/templating/builtin.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/templating/builtin.md b/docs/templating/builtin.md index 1f05edf..780b0c9 100644 --- a/docs/templating/builtin.md +++ b/docs/templating/builtin.md @@ -4,7 +4,8 @@ GitBook provides a serie of builtin filters and blocks to help you write templat ### Filters -`value|default(default, [boolean])`If value is strictly undefined, return default, otherwise value. If boolean is true, any JavaScript falsy value will return default (false, "", etc) +`value|default(default, [boolean])` +If value is strictly undefined, return default, otherwise value. If boolean is true, any JavaScript falsy value will return default (false, "", etc) `arr|sort(reverse, caseSens, attr)` Sort arr with JavaScript's arr.sort function. If reverse is true, result will be reversed. Sort is case-insensitive by default, but setting caseSens to true makes it case-sensitive. If attr is passed, will compare attr from each item. |