documentation for `eachAlive` helper
@@ -127,6 +127,7 @@ Habitat's templating flavour includes a number of useful helpers for writing con
* [`toUppercase`](#touppercase-helper)
* [`strReplace`](#strreplace-helper)
* [`pkgPathFor`](#pkgpathfor-helper)
+* [`eachAlive`](#eachalive-helper)
* [`toJson`](#tojson-helper)
* [`toToml`](#totoml-helper)
@@ -156,6 +157,16 @@ Returns the absolute filepath to the package directory of the package best resol
export JAVA_HOME={{pkgPathFor "core/jre8"}}
+### eachAlive Helper
+
+Iterates over a collection of members and renders the template for members that are marked alive.
+
+ {{#if bind.has_backend }}
+ {{~#eachAlive bind.backend.members}}
+ server ip {{ip}}:{{port}}
+ {{~/eachAlive}}
+ {{~/if}}
+
### toJson Helper
To output configuration data as JSON, you can use the `toJson` helper.
