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 jina template #730

Open
vbpatel73 opened this issue Sep 7, 2023 · 5 comments
Open

customize jina template #730

vbpatel73 opened this issue Sep 7, 2023 · 5 comments

Comments

@vbpatel73
Copy link

Hi I have seen index.jinja2 which i can modify and see results in report but I want to create new jinja2 template which i want to use same way like css file. how i can do that?

@BeyondEvil
Copy link
Contributor

That's not currently possible but is a feature that has been discussed.

Can you share more detail about your use case? It will help us determine a way forward.

@marcinosb
Copy link

Hello,

For me the case is simple, but still it would be good to have that custom templates in the future.
I would like to instead of:
<p>Report generated on {{ date }} at {{ time }} by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a>

display some other content. Using CSS I can not display that at all but in my case it's some dynamic info. I would like to add.

@BeyondEvil
Copy link
Contributor

Maybe a first version of this support is to simply allow a custom jinja-template, and then leave it up to the user to figure out how to make it work. 🤔

Thoughts @jeffwright13 ?

@RonnyPfannschmidt
Copy link
Member

i woud recommend having a default template that can be inherited from while replacing blocks for customization to prevent bitrot copies of the full template

@BeyondEvil
Copy link
Contributor

I didn't know jinja supported inherit-type functionality.

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

4 participants