Skip to content

Allow sub-classing badges to change style/structure #61

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

Open
jongracecox opened this issue Aug 9, 2022 · 0 comments
Open

Allow sub-classing badges to change style/structure #61

jongracecox opened this issue Aug 9, 2022 · 0 comments
Assignees

Comments

@jongracecox
Copy link
Owner

Is your feature request related to a problem? Please describe.
Support more extreme customization and configuration - allow more flexible templating and styling.

Describe the solution you'd like
In order to allow more customization and nuanced styles the badge class should be able to be subclassed, or maybe separate out aspects of the style into a separate class (BadgeStyle). The style class could be responsible for calculations, allowing the main badge package to deal with the macro aspects of generation.

Describe alternatives you've considered
Could use Jinja2 templates (which support math functions)

Additional context
Ideas originating from discussion with @miff2000 in #51.

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

No branches or pull requests

1 participant