legalese / legalese.github.io

Static assets for legalese.com
https://legalese.com/
71 stars 27 forks source link

standardize behaviour of template collisions #227

Open mengwong opened 7 years ago

mengwong commented 7 years ago

if we define two templates with the same name, at the top-level fillTemplates, the first one gets used. not the second. (edited)

but, at the include() level, the last one gets used.

we should probably standardize this to be "use the first one" and then have people define their own Available Templates above the INCLUDE that points to the Demo Master's main Available Templates.

wtf commented 7 years ago

It makes more sense to standardize this to use the last template everywhere. True to imperative-style side effects. B-)