Skip to content

Conversation

@Piechutowski-IERiGZ
Copy link

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.

Litestar
--------

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

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,

`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

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

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