You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I’d like to propose adding support for template fragments in EdgeJS. When working with libraries like HTMX and DataStar, it’s often necessary to re-render small sections of a template in response to user interactions on the page.
Currently, this functionality can be achieved by breaking templates into components or partials. However, this approach tends to create an excessive number of small files, each containing minimal markup, which can make code harder to manage.
Proposed Feature
Introduce a mechanism to allow re-rendering specific subsections of a single template file without the need to split it into multiple components. This would streamline development while retaining the flexibility needed for partial updates.
Rationale
Adding support for template fragments would greatly improve developer experience when working with interactive libraries like HTMX and similar tools. For more context and examples, please refer to the following article: Template Fragments in HTMX.
The text was updated successfully, but these errors were encountered:
Feature Request: Support for Template Fragments
Description
I’d like to propose adding support for template fragments in EdgeJS. When working with libraries like HTMX and DataStar, it’s often necessary to re-render small sections of a template in response to user interactions on the page.
Currently, this functionality can be achieved by breaking templates into components or partials. However, this approach tends to create an excessive number of small files, each containing minimal markup, which can make code harder to manage.
Proposed Feature
Introduce a mechanism to allow re-rendering specific subsections of a single template file without the need to split it into multiple components. This would streamline development while retaining the flexibility needed for partial updates.
Rationale
Adding support for template fragments would greatly improve developer experience when working with interactive libraries like HTMX and similar tools. For more context and examples, please refer to the following article: Template Fragments in HTMX.
The text was updated successfully, but these errors were encountered: