Sha256: 4f6396e95e899df2372c1793d54f9ef9d46d7f371262515239b4a3377f81d102

Contents?: true

Size: 313 Bytes

Versions: 63

Compression:

Stored size: 313 Bytes

Contents

<%
# This template render a template contained into Consul's KV
# Usage: kv_path=my/path/to_template_in_kv consul-templaterb samples/render_template_from_kv.erb

kv_path = param('kv_path') || ENV['kv_path']
template_content = kv(kv_path).get_value_decoded if kv_path
%><%= render_from_string(template_content) %>

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
consul-templaterb-1.19.0 samples/render_template_from_kv.erb
consul-templaterb-1.18.5 samples/render_template_from_kv.erb
consul-templaterb-1.18.4 samples/render_template_from_kv.erb
consul-templaterb-1.18.3 samples/render_template_from_kv.erb
consul-templaterb-1.18.2 samples/render_template_from_kv.erb
consul-templaterb-1.18.1 samples/render_template_from_kv.erb
consul-templaterb-1.18.0 samples/render_template_from_kv.erb
consul-templaterb-1.17.4 samples/render_template_from_kv.erb
consul-templaterb-1.17.3 samples/render_template_from_kv.erb
consul-templaterb-1.17.2 samples/render_template_from_kv.erb
consul-templaterb-1.17.1 samples/render_template_from_kv.erb
consul-templaterb-1.17.0 samples/render_template_from_kv.erb
consul-templaterb-1.16.0 samples/render_template_from_kv.erb
consul-templaterb-1.15.3 samples/render_template_from_kv.erb
consul-templaterb-1.15.2 samples/render_template_from_kv.erb
consul-templaterb-1.15.1 samples/render_template_from_kv.erb
consul-templaterb-1.15.0 samples/render_template_from_kv.erb
consul-templaterb-1.14.1 samples/render_template_from_kv.erb
consul-templaterb-1.14.0 samples/render_template_from_kv.erb
consul-templaterb-1.13.1 samples/render_template_from_kv.erb