Save 37% off PRO during our Black Friday Sale! »

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

53e6c4e436bb05c5a7dddee6834636ae?s=128

Klaus Zanders

October 17, 2012
Tweet

Transcript

  1. 8IBU*MJLFBCPVU &3#

  2. BOEXIBU*IBUFBCPVU )".-

  3. None
  4. &3#

  5. KVTUIUNM

  6. 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>
  7. JUMPPLTMJLF1)1 :&4

  8. JUMPPLTMJLF1)1 :&4 CVUIFZ JUbTPOMZ GSPOUFOE

  9. /POFFE UPMFBSO

  10. /POFFE UPMFBSO /POFFE UPUFBDI

  11. /POFFE UPMFBSO /POFFE UPUFBDI /POFFE UPDSPTTUIJOL

  12. 8:8*8:(

  13. '"45 *XJMMHFUUPUIBUMBUFS

  14. )".- TUQSPCMFN*UEPFTObUpUPOUIFTMJEFJOGPOUTJ[F

  15. MBOHVBHF -FBSO

  16. MBOHVBHF OPUIJOH HBJO -FBSO

  17. 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
  18. 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
  19. 4-08 *QSPNJTFE

  20. 0 2,75 5,5 8,25 11 HAML ERB SLIM Render Time

  21. 88,%

  22. 5IBOLT LMBVTUPQIFSIBNMFSCTMJN