about summary refs log tree commit diff
path: root/kontemplate.rb
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-06-26T10·23+0200
committerVincent Ambo <github@tazj.in>2018-06-26T19·06+0200
commit2db3bbcdbe0d4760cb16a847d8a56f2a4319316e (patch)
treea25d98386080ff571e1e2287de9f4b2e3bb85e76 /kontemplate.rb
parentbd5980a5d7433fd0ec81bd270c9d58e506ede54b (diff)
refactor(context): Rewrite and explain value merging logic
Changes the logic for merging context values to be unambiguous and
easy to follow.

* loadDefaultVars returns the default vars directly instead of
  performing merging in addition
* all merging is performed in `mergeContextValues` using explicit
  explanations for every step of the merge.

After this commit the order of merging goes from least to most
"specific", please read the explanatory comments for more information.

This relates to #142.
Diffstat (limited to 'kontemplate.rb')
0 files changed, 0 insertions, 0 deletions