PlaidWeb / Publ

Flexible publishing system for the web
http://publ.beesbuzz.biz/
MIT License
40 stars 4 forks source link

Entry.inherit, Category.inherit #555

Open fluffy-critter opened 11 months ago

fluffy-critter commented 11 months ago

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.