Skip to content

Jinja renderer not rendering from within Air Tags #231

@pydanny

Description

@pydanny

This works:

import air

jinja = air.JinjaRendered('templates')

@app.page
def index(request: air.Request):
    return jinja(request, 'home.html', title=air.Title('Home page'))

but the reverse is failing:

import air

jinja = air.JinjaRendered('templates')

@app.page
def index(request: air.Request):
    return air.layouts.mvpcss(
        air.Title('Home Page'),
        jinja('Content Page')
)

That's because we went back to `JinjaRenderer` only returning a TemplateResponse. We need to also have a separate render method.

Metadata

Metadata

Assignees

Type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions