diff options
-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 |