diff options
author | April King <april@mozilla.com> | 2019-06-15 01:27:28 +0300 |
---|---|---|
committer | April King <april@mozilla.com> | 2019-06-15 01:27:28 +0300 |
commit | 5d74addc329cd890ebab1e405ec8135706a393d5 (patch) | |
tree | 5947d5752b07a8a0bdfc98514f085541d36c59ef /README.md | |
parent | d28a2bd66b18b09f5abe12902b22e7f92215f4ba (diff) |
Update documents a little bit
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -30,7 +30,8 @@ There are two places that need to be updated in order to add support for a new p All of the templates are written in [Handlebars.js](https://handlebarsjs.com/), and so therefore support all of its standard features. This includes `if`/`else`/`unless` conditionals and `each` loops, for example. In addition, the configuration generator supports the following helpers: - `includes(item, stringOrArray`) - `true` if `stringOrArray` contains `item` - - `{{#if (includes ":DHE" output.cipherSuites)}}` +- `join(array, joiner)` - split a array into a string based on `joiner` + - `{{{join output.ciphers ":"}}}` - `last(array)` - returns the last item in the array - `minpatchver(minimumver, curver)` - `true` if `curver` is greater `minimumver` and both versions are the same patch version, e.g. `2.2` - `{{#if (minpatchver "2.4.3" form.serverVersion)}}` @@ -43,7 +44,7 @@ All of the templates are written in [Handlebars.js](https://handlebarsjs.com/), - `sameminorver(version, otherVersion)` - returns `true` if `version` and `otherVersion` are of the same minor version, e.g. `2.2` - `{{#if (sameminorver "2.4.0" form.serverVersion)}}` - `split(string, splitter)` - split a string into an array based on `splitter` - - `{{#each (split output.cipherSuites ":")}}` + - `{{#each (split somearray ":")}}` ## Building |