Skip to content

Instantly share code, notes, and snippets.

@deepak
Created April 19, 2011 10:38
Show Gist options
  • Save deepak/927109 to your computer and use it in GitHub Desktop.
Save deepak/927109 to your computer and use it in GitHub Desktop.
haml layout giving probs
!!!
%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
@deepak
Copy link
Author

deepak commented Apr 19, 2011

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

\n <d... ... ^ /Users/deepak/Work/obd/views/layout.haml:26: syntax error, unexpected $undefined ...
\n <div class='floa... ... ^ /Users/deepak/Work/obd/views/layout.haml:26: syntax error, unexpected keyword_class, expecting keyword_do or '{' or '(' ...chBox'>\n
\n #{ ... ^ /Users/deepak/Work/obd/views/layout.haml:26: syntax error, unexpected $undefined ...
\n #{ ... ^ /Users/deepak/Work/obd/views/layout.haml:29: syntax error, unexpected '}', expecting keyword_end ));}\n <a href='/log... ^ /Users/deepak/Work/obd/views/layout.haml:29: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '(' ));}\n ... ^ /Users/deepak/Work/obd/views/layout.haml:29: syntax error, unexpected tIDENTIFIER, expecting keyword_end ... Logout\n ... ... ^ /Users/deepak/Work/obd/views/layout.haml:29: unknown regexp options - dv /Users/deepak/Work/obd/views/layout.haml:29: syntax error, unexpected $undefined ...Logout\n
\n
\n </... ... ^ /Users/deepak/Work/obd/views/layout.haml:29: unknown regexp options - dv /Users/deepak/Work/obd/views/layout.haml:29: syntax error, unexpected $undefined ...
\n
\n #{ ... ^ /Users/deepak/Work/obd/views/layout.haml:31: syntax error, unexpected '}', expecting keyword_end ));}\n \n \n \n\n", -4, false); ^ /Users/deepak/Work/obd/views/layout.haml:31: unknown regexp options - dv /Users/deepak/Work/obd/views/layout.haml:31: syntax error, unexpected $undefined ));}\n \n \n \n\n", -4, false); ^ /Users/deepak/Work/obd/views/layout.haml:31: unknown regexp options - htl /Users/deepak/Work/obd/views/layout.haml:31: syntax error, unexpected $undefined ));}\n \n \n \n\n", -4, false); ^ /Users/deepak/Work/obd/views/layout.haml:31: unterminated string meets end of file /Users/deepak/Work/obd/views/layout.haml:31: syntax error, unexpected $end, expecting keyword_end

@deepak
Copy link
Author

deepak commented Apr 19, 2011

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