Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning only a partial block #339

Open
idc77 opened this issue Oct 1, 2023 · 0 comments
Open

Returning only a partial block #339

idc77 opened this issue Oct 1, 2023 · 0 comments

Comments

@idc77
Copy link

idc77 commented Oct 1, 2023

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.

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

No branches or pull requests

1 participant