<!doctype html><html><head><metacharset="utf-8"><title>CodeMirror: HAML mode</title><linkrel="stylesheet"href="../../lib/codemirror.css"><scriptsrc="../../lib/codemirror.js"></script><scriptsrc="../xml/xml.js"></script><scriptsrc="../htmlmixed/htmlmixed.js"></script><scriptsrc="../javascript/javascript.js"></script><scriptsrc="../ruby/ruby.js"></script><scriptsrc="haml.js"></script><style>.CodeMirror{background:#f8f8f8;}</style><linkrel="stylesheet"href="../../doc/docs.css"></head><body><h1>CodeMirror: HAML mode</h1><form><textareaid="code"name="code">!!!
#content
.left.column(title="title"){:href => "/hello", :test => "#{hello}_#{world}"}
<!-- This is a comment --> %h2 Welcome to our site!
%p= puts "HAML MODE"
.right.column
= render :partial => "sidebar"
.container
.row
.span8
%h1.title= @page_title
%p.title= @page_title
%p
/
The same as HTML comment
Hello multiline comment
-# haml comment
This wont be displayed
nor will this
Date/Time:
- now = DateTime.now
%strong= now
- if now > DateTime.parse("December 31, 2006")
= "Happy new " + "year!"
%title
= @title
\= @title
<h1>Title</h1><h1title="HELLO"> Title
</h1></textarea></form><script>vareditor=CodeMirror.fromTextArea(document.getElementById("code"),{lineNumbers:true,mode:"text/x-haml"});</script><p><strong>MIME types defined:</strong><code>text/x-haml</code>.</p><p><strong>Parsing/Highlighting Tests:</strong><ahref="../../test/index.html#haml_*">normal</a>, <ahref="../../test/index.html#verbose,haml_*">verbose</a>.</p></body></html>