Webgen

来自开放百科 - 灰狐
跳转到: 导航, 搜索

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

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

变换
操作
导航
工具箱