Created
April 19, 2011 10:38
-
-
Save deepak/927109 to your computer and use it in GitHub Desktop.
haml layout giving probs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%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| | |
- url = m_item[:url] | |
%li | |
%a{:href => url} | |
%span #{menu_item[:title]} | |
.searchBox | |
.float | |
Welcome, #{@user} | | |
%a{:href => "/logout", :only_path => "false"} Logout | |
=yield |
the commit 'f33d6e' works, but am setting a temp variable
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SyntaxError at /
/Users/deepak/Work/obd/views/layout.haml:25: syntax error, unexpected ';', expecting ')' _hamlout.adjust_tabs(1); _hamlout.format_script_false... ^ /Users/deepak/Work/obd/views/layout.haml:26: syntax error, unexpected '}', expecting keyword_end ));}\n </... ^ /Users/deepak/Work/obd/views/layout.haml:26: unknown regexp option - a /Users/deepak/Work/obd/views/layout.haml:26: syntax error, unexpected $undefined .../span>\n \n \n", -2... ... ^ /Users/deepak/Work/obd/views/layout.haml:26: unknown regexp option - l unmatched close parenthesis: /li>\n", -2, false);end;_hamlout.push_text(" </ /Users/deepak/Work/obd/views/layout.haml:26: syntax error, unexpected $undefined ...push_text(" \n \n ... ... ^ /Users/deepak/Work/obd/views/layout.haml:26: unknown regexp options - dv /Users/deepak/Work/obd/views/layout.haml:26: syntax error, unexpected $undefined ... \n \n <div class='search... ... ^ /Users/deepak/Work/obd/views/layout.haml:26: syntax error, unexpected keyword_class, expecting keyword_do or '{' or '(' ... \n