From 5d74addc329cd890ebab1e405ec8135706a393d5 Mon Sep 17 00:00:00 2001 From: April King Date: Fri, 14 Jun 2019 17:27:28 -0500 Subject: Update documents a little bit --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3fbfa88..dc8f9c7 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3