Project

swage

0.0
The project is in a healthy, maintained state
A UI library gluing together RubyUI, Phlex, and Tailwind with editable generators
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Swage

Basically a different implementation of Superview, but with a few extra goodies and generators baked in. Use Phlex for rendering views and Superform for the form DSL and strong parameters. Uses RubyUI for the base UI components and Phlexible to glue everything together (along with a lot of monkeypatching).

Installation

Simply run rails g swage:install, and all of the necessary components will be generated. Please not this might take a while to run.

Usage

By default Swage will hook into the rails scaffold engine. However, it is a drop-in replacement for the erb scaffold_controller, meaning it can be used in the exact same way.

Modification

If you wish to modify the generators, use rails g swage:generators to generate all of the scaffold and install generators/templates.

TODO

  • Consolidate the Tailwind classes down for the non-RubyUI components