fasthtml icon indicating copy to clipboard operation
fasthtml copied to clipboard

Dependency Injection

Open k1mbl3 opened this issue 6 months ago • 8 comments

Wow! You just took this project out of my mind! With all these 'pure Python webapp' libraries using WebSockets, I wondered when someone would leverage HTMX. Anyway, is there a way to inject dependencies into a parent component? For example, a generic snippet injecting the Alpine.js source into the <head> of the page?

It would be very helpful for creating component libraries that also depend on JavaScript libraries without forcing the final user to worry about setting up those dependencies correctly.

k1mbl3 avatar Jul 30 '24 14:07 k1mbl3