Webgen

来自开放百科 - 灰狐
2013年1月30日 (三) 11:37Allen (讨论 | 贡献)的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到: 导航, 搜索

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

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

变换
操作
导航
工具箱