highlight.haml

    !!!
    %html{ :xmlns => "http://www.w3.org/1999/xhtml", :lang => "en", "xml:lang" => "en"}
      %head
        %title BoBlog
        %meta{"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8"}
        %link{rel: 'stylesheet', href: 'main.css', type: 'text/css'}
        :css
          body {
            font-size: 16px;
            margin-top: 0px;
            margin-bottom: 0px;
            font-family: Arial, sans-serif;
          }

          p {
            margin: 0px;
            padding: 0px;
          }
      %body
        #header
          %a{
            href: root_path,
            name: "home"
          }
            %h1 BoBlog
          %h2 Bob's Blog
        #content
          - @entries.each do |entry|
            .entry{ id: entry.id }
              %h3.title= entry.title
              %p.date
                Posted on #{entry.posted.strftime("%A, %B %d, %Y")}
              %p.body= entry.body
          = button_to "Load more", entries_path,
            class: "btn btn-primary",
            method: :get,
            params: { last_id: @entries.map(&:id).min },
            form: { data: { turbo_stream: true } }
        :ruby
          provide(:title, user_title(@user))
          provide(:og, user_opengraph(@user))
          provide(:meta, user_twitter_card(@user))

          parent_layout 'user/profile'
        #footer
          %p
            All content copyright © Bob

        #filterTest
          %p Just testing some more HAML filters

          :coffee
            window.alert "Hello from CoffeeScript #{1}"

          :coffeescript
            window.alert "Hello from CoffeeScript again, #{1 + 1}"

          :css
            #filterTest {
              display: none;
            }

          :erb
            For some reason <%= "ERB works too #{@abcdef}" %>.

          :plain
            Anything else should be treated as plain text.
            This also means that the following shouldn't be highlighted:

            %h1#superawesomeheading Heading 1

          %div Filter test done