Warning, /frameworks/syntax-highlighting/autotests/input/highlight.haml is written in an unsupported language. File is not indexed.

0001 !!!
0002 %html{ :xmlns => "http://www.w3.org/1999/xhtml", :lang => "en", "xml:lang" => "en"}
0003   %head
0004     %title BoBlog
0005     %meta{"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8"}
0006     %link{rel: 'stylesheet', href: 'main.css', type: 'text/css'}
0007     :css
0008       body {
0009         font-size: 16px;
0010         margin-top: 0px;
0011         margin-bottom: 0px;
0012         font-family: Arial, sans-serif;
0013       }
0014 
0015       p {
0016         margin: 0px;
0017         padding: 0px;
0018       }
0019   %body
0020     #header
0021       %a{
0022         href: root_path,
0023         name: "home"
0024       }
0025         %h1 BoBlog
0026       %h2 Bob's Blog
0027     #content
0028       - @entries.each do |entry|
0029         .entry{ id: entry.id }
0030           %h3.title= entry.title
0031           %p.date
0032             Posted on #{entry.posted.strftime("%A, %B %d, %Y")}
0033           %p.body= entry.body
0034       = button_to "Load more", entries_path,
0035         class: "btn btn-primary",
0036         method: :get,
0037         params: { last_id: @entries.map(&:id).min },
0038         form: { data: { turbo_stream: true } }
0039     :ruby
0040       provide(:title, user_title(@user))
0041       provide(:og, user_opengraph(@user))
0042       provide(:meta, user_twitter_card(@user))
0043 
0044       parent_layout 'user/profile'
0045     #footer
0046       %p
0047         All content copyright © Bob
0048 
0049     #filterTest
0050       %p Just testing some more HAML filters
0051 
0052       :coffee
0053         window.alert "Hello from CoffeeScript #{1}"
0054 
0055       :coffeescript
0056         window.alert "Hello from CoffeeScript again, #{1 + 1}"
0057 
0058       :css
0059         #filterTest {
0060           display: none;
0061         }
0062 
0063       :erb
0064         For some reason <%= "ERB works too #{@abcdef}" %>.
0065 
0066       :plain
0067         Anything else should be treated as plain text.
0068         This also means that the following shouldn't be highlighted:
0069 
0070         %h1#superawesomeheading Heading 1
0071 
0072       %div Filter test done