Middleman: 効率的な作業を可能にする Ruby 製の静的サイト生成ツール
◯導入
(Rubyインストール)
(sudo) gem install middleman
cd desktop/test middleman init .
middleman server
The Middleman is standing watch at http://0.0.0.0:4567
ターミナルで「Ctrl+C」
middleman build
◯その他
◯テンプレ
/source/layouts/layout.haml
- # encoding: utf-8 !!! %html{:lang => "ja"} %head %meta{:charset => "UTF-8"} %title Hello World %link(href="./common/common.css" rel="stylesheet") %script(src="./common/jquery-1.11.1.min.js") %script(src="./common/common.js") /[if lt IE 9] %script(src="http://html5shim.googlecode.com/svn/trunk/html5.js") %body %div.wrapper %header %h1 Hello World %h2 ナビゲーション %nav %ul %li リスト1 %li リスト2 %li リスト3 = yield %footer
/source/index.html.haml
%section.mainArea %p このページはHamlのテスト環境です。 %p< Hamlの記法については %a(href="http://fukuyama.co/haml2")<> こちら を参考にしました。 %p#jsText
◯疑問