A useful function for property getters would be to have .inherit which would be like:
entry.inherit(property_name, default)
which would act like .get except if the value isn't provided on the current entry/category it would walk up the category tree until it finds that value, or falls back to the provided default if not.
This would be useful as a mechanism for storing overrideable template configuration options.
A useful function for property getters would be to have
.inherit
which would be like:which would act like
.get
except if the value isn't provided on the current entry/category it would walk up the category tree until it finds that value, or falls back to the provided default if not.This would be useful as a mechanism for storing overrideable template configuration options.