Brad Gessler

128 Followers
57 Following
150 Posts

I’m curious how @joeldrapper and others are managing Tailwind Tokens in their Phlex apps.

I have constants with a big list of tokens, which is actually working great, but it doesn't compose that well.

I've used the `tokens` method, which is better, but then there's certain overrides that I'd like to make such as `text-left` on something with a `text-center` token.

There's probably a world where a `tailwind` method exists that knows to overwrite certain tokens in these cases.

Using case … in … pattern matching statements for content negotiation in Rowdy.

https://github.com/rocketshipio/rowdy

😍

GitHub - rocketshipio/rowdy: Route web requests to classes

Route web requests to classes. Contribute to rocketshipio/rowdy development by creating an account on GitHub.

GitHub

I worked out how to use Module.prepend to mount middleware into a PORO web routing framework I've been playing around with called Rowdy.

More at https://github.com/rocketshipio/rowdy#middleware

It's still super early stages, but its a lot of fun building this with the latest Ruby 3.x features like pattern matching.

🤩

GitHub - rocketshipio/rowdy: Route web requests to classes

Route web requests to classes. Contribute to rocketshipio/rowdy development by creating an account on GitHub.

GitHub

This is possible. What do you think?

What problem does it solve? In Rails did you notice how you have to constantly create controllers that do mostly the same thing for resources?

This would let you configure controllers, then mount them in a router.

You could also extend the controller to handle other stuff, like certain authorization logic, and mount the subclass.

The end result: you don’t have to generate as many files as you do in Rails to build the same stuff.