2 ms·
I like using the builder approach in Ruby. x.html { x.head x.body { for i in 1..5 { x.div(:id => i) { "yo" ... but my designe
by mattmcknight 18y ago
I like using the builder approach in Ruby.
x.html {
x.head
x.body {
for i in 1..5 {
x.div(:id => i) {
"yo"
...
but my designer likes the templating stuff better. With a good IDE, it does become pretty easy to tell the code from the template.