Skip to content

Integrate minijinja into aiscript-runtime as template engine #31

@Folyd

Description

@Folyd
// hello-page.jinja
{% if query.is_admin %}
<div> Hello, {query.name} (Admin)</div>
{% else %}
<div> Hello, {query.name}</div>
{% endif %}
get /hello {
    query {
        name: str,
        is_admin: bool = false,
    }

    return render("hello-page.jinja", query);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedExtra attention is neededwebAIScript web framework and runtime

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions