bundle add loco_motion-rails
= daisy_button "Accent Button", css: "btn-accent"
= daisy_tip("Click to Swap") do
= daisy_swap off: "๐", on: "๐"
= daisy_badge "Large Badge", css: "badge-secondary badge-lg"Utilize HAML so your views are simple, concise, and easy to understand. HAML feels more natural to write and reduces file sizes, making your views easier to read and maintain.
PLUS! You can utilize filters like Markdown , CoffeeScript, Textile, and many more!
Read the HAML guide<% 5.times do |i| %>
<% if i.even? %>
<p class="odd">
Number <%= i %>
</p>
<% else %>
<p class="even">
Numero <%= i %>
</p>
<% end %>
<% end %>- 5.times do |i|
- if i.even?
%p.odd Number #{i}
- else
%p.even Numero #{i}Can't find exactly what you need? No problem! Build your own components with ease using our simple, flexible, and powerful DSL โ parts, tags, CSS, and Stimulus controllers, all in one place.
Read the components guide# app/components/character_component.rb
class CharacterComponent < ApplicationComponent
define_parts :head, :body, :legs
def before_render
set_tag_name(:head, :h1)
add_css(:head, "text-3xl font-bold")
add_stimulus_controller(:body, "character-body")
end
endStand up a new Dockerized Rails app with HAML, TailwindCSS, and DaisyUI.
A consistent, reliable development environment for any OS.
Cleaner, indentation-based templates for a better developer experience.
Build your own ViewComponents with the LocoMotion DSL โ parts, slots, and Stimulus.
ruby-debug, RSpec, and Playwright for a fast feedback loop.
Keep business logic clean and testable with ActiveInteraction.
Wire up OmniAuth sign-in with the developer strategy.
Inspect errors in the browser with Web Console and BetterErrors.
Create virtual credit / debit cards to keep your real info safe.
Get $5 when you sign up โ free to start!
Everything you need to grow your business with confidence!
CRM, Lead Generation, Project Management, Contracts, Online Payments, and more!
The ads above are affiliate links to products I regularly use and highly
recommend.
I may receive a commission if you decide to purchase.