!!! Strict๋ HTML 5 doctype์ ๋ฐํํฉ๋๋ค.
๋๋ ๋น์ ์ด Rails 3๋ฅผ ์ฌ์ฉํ๊ณ ์๋ค๊ณ ๊ฐ์ ํฉ๋๊น? ๊ทธ๋ ๋ค๋ฉด ์ด๊ฒ์ ๋ฒ๊ทธ๊ฐ ์๋๋๋ค. Rails 3๋ ๊ธฐ๋ณธ์ ์ผ๋ก HTML5 ์ถ๋ ฅ์ ์ฌ์ฉํ๋ฏ๋ก Rails 3์์ ์คํ๋๋ Haml์ ๊ธฐ๋ณธ์ ์ผ๋ก :format => :html5
๋ก ์ค์ ๋์ด ์์ต๋๋ค.
๋๋ sinatra์์ ๊ฐ์ ๋ฒ๊ทธ๋ฅผ ๊ฒฝํํ๊ณ ์์ต๋๋ค.
!!! Strict๋ ์ฌ์ ํ html doctype์ผ๋ก ์ถ๋ ฅํฉ๋๋ค. ์ค์ ๋ก doctype์ html 5 ์ด์ธ์ ๋ค๋ฅธ ๊ฒ์ผ๋ก ๋ณ๊ฒฝํด๋ ์์ ๋์ง ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
:format
์ต์
์ด :html5
์ค์ ๋์ด ์์ต๋๊น? ํ
ํ๋ฆฟ์ = haml_buffer.options[:format]
๋ฅผ ์ถ๊ฐํ๋ฉด ํ์ธํ ์ ์์ต๋๋ค.