Colocation #532
-
Is it a goal of I came across https://github.com/devnacho/mountain_view which seems suited for this goal but it doesn't seem to have the maintenance or backing that this project has. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can certainly associate CSS/JS along with the Ruby code/template (the "sidecar assets" as they're called). There's also nothing "technically" stopping you from fetching data directly inside the Ruby component code, but I wouldn't necessarily recommend that pattern. Here's a related project you might find interesting: https://github.com/joshleblanc/view_component_reflex |
Beta Was this translation helpful? Give feedback.
-
@hennessyevan ViewComponent intentionally avoids having an opinion on how CSS/JS should be authored due to the vastly varied and ever-changing nature of those disciplines. |
Beta Was this translation helpful? Give feedback.
@hennessyevan ViewComponent intentionally avoids having an opinion on how CSS/JS should be authored due to the vastly varied and ever-changing nature of those disciplines.