Skip to content

customize jina template #730

Open
Open

Description

@vbpatel73

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?

Activity

  1. BeyondEvil commented on Sep 9, 2023

    @BeyondEvil
    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.

  2. marcinosb commented on Nov 28, 2023

    @marcinosb

    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.

  3. BeyondEvil commented on Dec 2, 2023

    @BeyondEvil
    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 ?

  4. RonnyPfannschmidt commented on Dec 2, 2023

    @RonnyPfannschmidt
    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

  5. BeyondEvil commented on Dec 2, 2023

    @BeyondEvil
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions