Skip to content

Instantly share code, notes, and snippets.

@benlangfeld
Forked from deepak/layout.haml
Created April 19, 2011 11:00
Show Gist options
  • Save benlangfeld/927130 to your computer and use it in GitHub Desktop.
Save benlangfeld/927130 to your computer and use it in GitHub Desktop.
!!!
%html{:xmlns => "http://www.w3.org/1999/xhtml"}
%head
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
%title #{@title}/
%link{:href => "css/style.css", :media => "screen", :rel => "stylesheet", :type => "text/css"}/
%link{:href => "css/contentlayout.css", :media => "screen", :rel => "stylesheet", :type => "text/css"}/
%link{:href => "css/voice.css", :media => "screen", :rel => "stylesheet", :type => "text/css"}/
%link{:href => "css/home.css", :rel => "stylesheet", :type => "text/css"}/
%script{:src => "js/application.js", :type => "text/javascript"}/
%body.yui-skin-sam
#container
.wallpaper
.topheader
.logocontainer
%h1.logoImg
%a{:href => "/index"}
%img{:alt => "", :src => "images/logo1.gif", :title => "Logo"}/
.menu
.TopMenu
%ul
- @menu.each do |m_item|
%li
%a{:href => m_item[:url]}
%span= m_item[:title]
.searchBox
.float
= "Welcome, #{@user} |"
%a{:href => "/logout", :only_path => "false"} Logout
=yield
@deepak
Copy link

deepak commented Apr 19, 2011

why generate a string in line 28
= "Welcome, #{@user} |"
as opposed to
Welcome, #{@user} |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment