Skip to content

Allow multiple template paths#227

Open
a-babarytskyi wants to merge 1 commit into
sabuhish:masterfrom
a-babarytskyi:patch-1
Open

Allow multiple template paths#227
a-babarytskyi wants to merge 1 commit into
sabuhish:masterfrom
a-babarytskyi:patch-1

Conversation

@a-babarytskyi
Copy link
Copy Markdown

@a-babarytskyi a-babarytskyi commented Mar 12, 2025

Updating type annotation, since jinja accepts list of paths and will look for potential templates in all of them. Especially helpfull if you have a lot of templates that rely on similar base higher in hierarchy.

No other changes required, tested locally.

updating type annotation, since jinja accepts list of paths and will look for potential templates in all of them.
@sabuhish
Copy link
Copy Markdown
Owner

Hey @a-babarytskyi!

Thanks looking into it. Okay jinja can accept list of paths, but is fastapi-mail supports this? Also, naming convention wont be correct in this case for template folder, s letter should have at the end. Another question raises, do we have tests for this case?

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