pub fn get_mine(
h: &Helper<'_, '_>,
_: &Handlebars<'_>,
_: &Context,
_rc: &mut RenderContext<'_, '_>,
out: &mut dyn Output,
) -> HelperResultExpand description
A templating helper that retrieves the value for current host from a map, returns a default value when current host is not recorded in the map.
Usage:
-
{{ get_mine }}Renders current machine’s hostname.
-
{{ get_mine <map> <default-value> }}Renders
<map>.$CURRENT_HOSTNAME, falls back to<default-value>.