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

Customize base template #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kasun
Copy link
Contributor

@kasun kasun commented Jun 20, 2023

As per discussion in #21 this PR adds support to customise base html template by declaring it as a class attribute in view classes.

  • Base template name defined as a class attribute.
  • Base template name is added to context data.
  • Change all template files to extend the base html template using variable passed to context data.
  • CRUDView documentation update.
  • Unit test to test base html override.

Addresse step 2 of #6

@carltongibson
Copy link
Owner

Thanks for this @kasun! 🎁

So you know, I just need a bit of time to sit down with it.

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

Successfully merging this pull request may close these issues.

2 participants