Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entry.inherit, Category.inherit #555

Open
fluffy-critter opened this issue Dec 23, 2023 · 0 comments
Open

Entry.inherit, Category.inherit #555

fluffy-critter opened this issue Dec 23, 2023 · 0 comments

Comments

@fluffy-critter
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant