Start haml
This commit is contained in:
parent
4348a9dd23
commit
3dce122f8c
5 changed files with 366 additions and 0 deletions
40
demo/kitchen-sink/docs/haml.haml
Normal file
40
demo/kitchen-sink/docs/haml.haml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
!!!5
|
||||
|
||||
-# <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
|
||||
-# <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
|
||||
-# <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
|
||||
-# <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
||||
|
||||
# file: app/controllers/movies_controller.rb
|
||||
|
||||
class MoviesController < ApplicationController
|
||||
def index
|
||||
@title = "Teen Wolf"
|
||||
end
|
||||
end
|
||||
/adasdasdad
|
||||
%div{:id => "#{@item.type}_#{@item.number}", :class => "#{@item.type} #{@item.urgency}"}
|
||||
-# file: app/views/movies/index.html.haml
|
||||
\d
|
||||
%p==ddd==
|
||||
Date/Time:
|
||||
- now = DateTime.now
|
||||
%strong= now
|
||||
- if now > DateTime.parse("December 31, 2006")
|
||||
= "Happy new " + "year!"
|
||||
%sfd.dfdfg
|
||||
#content
|
||||
.title
|
||||
%h1= @title
|
||||
= link_to 'Home', home_url
|
||||
|
||||
%div#content
|
||||
%div.articles
|
||||
%div.article.title Blah
|
||||
%div.article.date 2006-11-05
|
||||
%div.article.entry
|
||||
Neil Patrick Harris
|
||||
|
||||
%div[@user, :greeting]
|
||||
%bar[290]/
|
||||
Hello!
|
||||
Loading…
Add table
Add a link
Reference in a new issue