Sha256: 4692d5cfdfb835917ac7fa941a93563683f84db8e5d55485589df9d30287e829
Contents?: true
Size: 805 Bytes
Versions: 1
Compression:
Stored size: 805 Bytes
Contents
# Sapluuna Silly little template based configuration maker * Anything outside {{{ ... }}} is comment and won't be in generated file * Inside {{{ }}} you can have <% foo %> which is just ruby * For method_missing in <% foo %> we try variable[name] hash, given to constructor, i.e. Sapluuna.new variables: {replace_this: 'with_this'} .... <% replace_this %> works * {{{ can be followed by negative or positive labels, if labels match to those given to constructor {{{ }}} is evaluated, otherwise ignored * rationale for labels is {{{ PE ..... }}} or {{{ Finland Sweden ..... }}} to conditionally evaluate blocks * You can query the instance on what variables are needed when labels X are set, use-case is in say in webUI to automatically generate form with all variables template needs
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sapluuna-0.2.0 | README.md |