ποΈGenerators
Generators
mix petal.gen.live
This produces the same files as Phoenix's mix phx.gen.live
(docs). The only difference is that the templates use Tailwind and Petal Components. You can try it out with:
Add the routes from the output.
If you're wondering where to put the routes, you can search in the router file for the text "Add live authenticated routes here", and add them straight after that line.
mix petal.gen.html
Same file output as phx.gen.html
(docs), but uses Petal Components and a layout from Pro.
Example:
Last updated