Skip to content

Returning only a partial block #339

@idc77

Description

@idc77

With the rising popularity of htmx, partial html responses are seeing a revival.

In jinja or rather pongo2 you {% extends "filename" %} where those blocks are defined and returns the whole rendered thing.
I hope it's understood what I mean.

Instead of this behavior, I'd like to render only a certain {% block name %}.

Is it possible to say "don't use extend and render only the block named name"?

This is possible with the standard template engine of Go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions