tag helper alternative for Sinatra #437
Unanswered
katelovescode
asked this question in
Q&A
Replies: 1 comment
-
Hi Kate! Unlike the rest of the integrations (Vite Hanami, Vite Padrino), Sinatra doesn't have a "standard" view layer, it doesn't provide helpers like Padrino does (which is itself an extension around Sinatra). You can use these set of helpers as inspiration. In fact, if Let me know what you come up with, could be helpful for other folks using Sinatra. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to incorporate vite_ruby with my Sinatra app, which as of right now is extremely simple. I'm including diagrams of the relevant directory tree as well as the contents of the related files below.
I don't believe that
vite_ruby
has tag helpers, so I'm not sure how to implement the tag helpers that are provided for rails (<%= vite_client_tag %>
and<%= vite_javascript_tag %>
specifically) manually to include the pipeline into my Sinatra app.Any suggestions on the format of the script/client tags if I'm going to include them manually inside the
<head>
tag?Beta Was this translation helpful? Give feedback.
All reactions