Replies: 1 comment 3 replies
-
My original plan with div do
md "This is some prose with a **bold** word."
end I need to get back to that project. I’d like to switch that project to |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Take a simple situation where you're mixing some prose and HTML tags:
It's quite a bit worse to write (and read) than the the comparable HTML:
Yet this kind of DSL creation is where ruby really shines. What if we leaned more heavily on Ruby's special powers? What if strings were given special case handling within blocks to support syntax like this:
And then further, all tags could override their to_s method to support:
I would love if Phlex was this flexible and supported a more natural-to-write syntax like this.
Beta Was this translation helpful? Give feedback.
All reactions