纯Ruby编写HTML页面 Markaby

openkk 7年前
     <p>Markaby 是一个用纯Ruby语言编写 HTML 页面的项目。</p>    <p>markaby 包的安装方法:#gem install markaby<br /> </p>    <pre class="brush:ruby; toolbar: true; auto-links: false;">  html do     head do       title 'Products: ' + action_name       stylesheet_link_tag 'scaffold'     end      body do       p flash[:notice], :style => "color: green"        self << content_for_layout     end   end</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1322998817827" target="_blank">http://www.open-open.com/lib/view/home/1322998817827</a></p>    <p></p>