2 ms·
I've thought that Ruby's syntax would map nicely to HTML elements: div class: "language-javascript" do a href: "index.html" { img style: "height:2em",
by _hardwaregeek 6y ago
I've thought that Ruby's syntax would map nicely to HTML elements:
div class: "language-javascript" do
a href: "index.html" { img style: "height:2em", src: "pic.png"; "⇦"}
h1 {"What if we'd had better " + code{"html"} + "-in-" code{"js"} syntax all along?"}
p{"I have a theory that a grave mistake was made in 1995 ..."}
end