Skip to content

Update integration.rst to include Litestar framework#2085

Open
Piechutowski-IERiGZ wants to merge 1 commit into
pallets:mainfrom
Piechutowski-IERiGZ:main
Open

Update integration.rst to include Litestar framework#2085
Piechutowski-IERiGZ wants to merge 1 commit into
pallets:mainfrom
Piechutowski-IERiGZ:main

Conversation

@Piechutowski-IERiGZ

Copy link
Copy Markdown

This PR updates the integration.rst documentation to include information on how to integrate the Litestar framework with Jinja templating. It provides an example of how to register the Jinja template engine in a Litestar application, aligning it with the structure of existing framework integrations like Flask, Django, and Pylons.

Comment thread docs/integration.rst
Litestar
--------

`Litestar`_ allows you to easily render templates using a built-in templating engines,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor grammar correction.

Suggested change
`Litestar`_ allows you to easily render templates using a built-in templating engines,
`Litestar`_ allows you to easily render templates using built-in templating engines,

Comment thread docs/integration.rst
`Litestar`_ allows you to easily render templates using a built-in templating engines,
including Jinja, and integrates it seamlessly into the framework.

To use Jinja templates with Litestar, you can register it through the

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The combination of Jinja templates and register it causes some confusion. Am I registering a single template or the engine?

Suggested change
To use Jinja templates with Litestar, you can register it through the
To use Jinja with Litestar, you can register the `JinjaTemplateEngine` through the

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are registering the engine. Good point.

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