Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: