ãã³ãã¬ã¼ãã«å¤æ°ãåãè¾¼ãæ¹æ³ã調ã¹ã¦ã¿ãã ãã¼ã¸ã§ã³ (2012/09/26 追è¨) Hamlã®ãã¼ã¸ã§ã³ã¯ 2.2.2 ã使ã£ã¦ãã¾ãã ã³ã³ããã¼ã© require 'rubygems' require 'sinatra' get '/:id' do @id = params[:id] @items = ['red', 'green', 'yellow'] haml :index end ãã³ãã¬ã¼ã !!! XML !!! %html{html_attrs('ja')} %head %title= @id %body %h1 Hello, @id %h1 Hello, #{@id}! %h1= "Hello, #{@id}!" %h1(class = @id)="Hello, " + @id + "!" %h1{:id => @id}= "Hello, ", @id, "!"
{{#tags}}- {{label}}
{{/tags}}