Skip to content

Template fragment support #2163

Description

@bcomnes

Would Handlebars be open to adding support for fragment support?

https://htmx.org/essays/template-fragments/

Essentially it lets you declare something similar to a partial inside an existing template, and then when you call to render your template you can optionally target a sub-fragment of the larger template. This helps when you need to re-render many small parts of a smaller template, that don't necessarily need re-use on other templates (and thus don't benefit from partials as much).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions