Web 网站生成器:webgen

jopen 11年前

webgen 一个免费,快速,强大和可扩展的静态网站发生器。使用 Ruby 开发。可根据模板来生成静态网站,并提供工具来生成类似菜单类的动态内容。

  • Core Features

    The following list shows general benefits of using webgen:

    • Fast (only the necessary files are regenerated)
    • Easy to install and use
    • Supports translating any files (content files or assets)
    • Runs on Linux, Mac OS X, Windows
    • Extendable by writing add-ons in Ruby
    • Easy to configure if one needs to (no need if you are happy with the default values)
    • Command line interface uses command style syntax (like git command)
  • Supported Formats/Markup Languages

    webgen content files can be written in a number of different formats and new formats can easily be added. Here is a partial list:

    • Markdown (including special syntax like setting header ids and html attributes through thekramdown library)
    • Textile (through the RedCloth library)
    • Haml and Sass
    • RDoc (the native API documentation format for Ruby)
    • Builder (tool for programatically creating XML documents)
    • Smiley-to-emoticon conversion (through an official extension bundle)
  • Supported File Types

    Anything can be put into webgen’s source directory so that it gets copied to the destination directory but some file types are handled specially, for example:

    • Page files (primarily used to define the content of a web page but can really be used to create about any text-based file format)
    • Template files (used to define the general layout of a web page, these are chainable/nestable)
  • Dynamic Content

    Although webgen is used to create a static website, it allows one to embed dynamic parts to support features like dynamic menu generation, dynamic link generation and more. Here are some of the available methods for adding dynamic content:

    • webgen tags: these allow non-programmers to easily add dynamic content using a simple markup syntax. webgen ships with many tag extensions for
      • generating menus and breadcrumb trails
      • listing all translations of a page
      • syntax highlighting code fragments or entire files
      • and much more
    • ERB (embedded Ruby) for custom scripts embedded into content files for advanced users.
  • Other Features

    Additionally to the above webgen provides some other useful features:

    • Specify meta information (e.g. title, ordering information, …) for any file through specialmeta info files
    • Support for specifying virtual files and directories (can be used, for example, to include links to external pages in menus)
    • Generated HTML files can be automatically checked if they are standard conform
    • Automatic rebuilding of the website when a source path changes
    • Automatic generation of needed directory index files

Web 网站生成器:webgen

项目主页:http://www.open-open.com/lib/view/home/1378255657734