First-party support for loading Partials #681
turbo
started this conversation in
4. General
Replies: 2 comments 5 replies
-
@turbo Alpine was never intended to be used a complete templating framework, it is designed to work with existing markup on a page, so the chances of something like this being implemented in the core are highly unlikely. Especially since this can all be done in user-land or using another package alongside Alpine. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Fetching partial HTML is one of the primary examples in the README. This would simply add way to prevent the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I like to extract components (or partials in general), to other files. At the moment, I'm using something like this to load them:
I'd suggest adding an easier way to do this, maybe something along the lines of
<div x-html-ext="/nav.html"></div>
Another way I have used this is for simultaneous partial loading and component mounting:
Beta Was this translation helpful? Give feedback.
All reactions