Upgrade to Pro — share decks privately, control downloads, hide ads and more …

My thoughts on Haml and ERB

My thoughts on Haml and ERB

For Cologne.rb, Lucas and I did a little battle talk about Haml and ERB. Here is my part of the talk

Klaus Zanders

October 17, 2012
Tweet

More Decks by Klaus Zanders

Other Decks in Technology

Transcript

  1. &3#

  2. KVTUIUNM TPNFSVCZ <!doctype html> <html> <head> <title> <%= title %>

    </title> </head> <body> <% if current_user? %> Hallo, <%= current_user.name %> <% else %> <%= link_to "Einloggen", login_path %> <% end %> </body> </html>
  3. NVDIIBSEFSSFBE !!! 5 %html{lang: "de"} %head %meta{charset: "utf-8"} %title Hello

    %body .navbar.navbar-fixed-top .navbar-inner .container = link_to "Meine Seite", root_path, class: "brand" .nav-collapse %ul.nav %li= link_to 'Test', test_path %li= link_to 'Test #2', test_2_path - if current_user %li Hallo, = current_user.name - else %ul.nav.pull-right %li = link_to "Anmelden", login_path .container = yield
  4. NVDIIBSEFSSFBE !!! 5 %html{lang: "de"} %head %meta{charset: "utf-8"} %title Hello

    %body .navbar.navbar-fixed-top .navbar-inner .container = link_to "Meine Seite", root_path, class: "brand" .nav-collapse %ul.nav %li= link_to 'Test', test_path %li= link_to 'Test #2', test_2_path - if current_user %li Hallo, = current_user.name - else %ul.nav.pull-right %li = link_to "Anmelden", login_path .container = yield ) PX N BOZGVDLJOH UBCTEP*OFFEUP BEEBOFX QPJOU OBWDPMMBQTF