Outro template engine para rails...

Posted by André Ribeiro Camargo Thu, 19 Jan 2006 00:07:00 GMT

Markaby (Markup a*s Ruby) é o nome da criança.

Parece bem interessante, mas ainda não sei dizer se começarei a usar em breve.

A idéia da coisa, como o nome sugere, é utilizar ruby para gerar html.

Imagine um *app/view/layout/application.mab (a extensão é .mab!) como segue abaixo:

html do
  head do
    title action_name
    stylesheet_link_tag 'scaffold'
  end
  body do
    p flash[:notice], :style => "color: green" 
    self << @content_for_layout
  end
end

Cara, na boa… ruby é lindo…

Ontem assisti o vídeo do snakes and rubies, foi bem interessante. O Adrian Holovaty (criador do django) impressionou a turma com a velocidade em que conseguem implementar coisas.

Apresentação do DHH também foi boa, gostei da parte que ele exorcisa os céticos ao rhtml :-) Os slides da palestra estão disponíveis para download

Posted in ,  | 2 comments

Comments

  1. sdfsdf said 2065 days later:

    fanonsc ncv youmeiyou mjv chaimei kjf jbsstev hhg gucci purse

  2. dfb said 2115 days later:

    The list includes Honda Motor Co, Panasonic, north face jackets cheap Nintendo Co Ltd and Nomura Holdings. Sony blamed the deluge in Thailand for cutting 25 billion yen in expected earnings, and reduced its TV sales forecast by 9 percent to 20 million sets, the second cut this financial year.

(leave url/email »)

   Comment Markup Help Preview comment