欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Webgen
来自开放百科 - 灰狐
(版本间的差异)
小 (→Links) |
|||
第20行: | 第20行: | ||
* http://docs.huihoo.com/webgen/ | * http://docs.huihoo.com/webgen/ | ||
* http://download.huihoo.com/webgen/ | * http://download.huihoo.com/webgen/ | ||
+ | |||
+ | [[category:ruby]] |
2013年1月30日 (三) 11:37的最后版本
webgen is a free (GPL-licensed) command line application for generating static websites. You could write a static website by hand, of course. But by using webgen you have several advantages:
- The page layout is separated from the content: if you change the layout, all pages that use that layout are automatically updated.
- The content files can be written in a markup language like Markdown or Textile.
- webgen can automatically generate, for example, menus and breadcrumb trails for you.
- Dynamic content can easily be added to content files.
- webgen websites are self contained since all generated links are relative ones.
[编辑] Install
gem install webgen or get package from http://rubyforge.org/frs/?group_id=296 ruby setup.rb config ruby setup.rb setup ruby setup.rb install
[编辑] Tutorial
webgen create sample_site cd sample_site config.yaml ext Rakefile README src
[编辑] Links
分享您的观点