Webgen

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(Links)
 
(未显示1个用户的1个中间版本)
第12行: 第12行:
 
  ruby setup.rb setup
 
  ruby setup.rb setup
 
  ruby setup.rb install
 
  ruby setup.rb install
 +
==Tutorial==
 +
webgen create sample_site
 +
cd sample_site
 +
config.yaml  ext  Rakefile  README  src
 
==Links==
 
==Links==
 
* http://webgen.rubyforge.org
 
* http://webgen.rubyforge.org
 
* 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

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱