项目作者: alanhaggai

项目描述 :
Static website generator
高级语言: Perl
项目地址: git://github.com/alanhaggai/StaticVolt.git
创建时间: 2011-11-28T19:58:44Z
项目社区:https://github.com/alanhaggai/StaticVolt

开源协议:

下载


StaticVolt

StaticVolt is a static website generator supporting Template Toolkit 2
(TT2) layouts and both Markdown and Textile content.

Getting Started

  • Install using cpan, cpanm or from source.
  • Create a source and a layout directory:

    mkdir -p docs/{_source,_layouts}

  • Create a simple layout in _layouts/main.html:

    1. <!DOCTYPE html>
    2. <html>
    3. <head>
    4. <title></title>
    5. </head>
    6. <body>
    7. [% content %]
    8. </body>
    9. </html>
  • Create some content in _source/index.markdown with a YAML style header:
  1. ---
  2. layout: main.html
  3. drink : water
  4. ---
  5. Drink **plenty** of [% drink %].
  • Run the staticvolt tool to generate a _site directory
    containing the processed web-site.

  • Run perldoc StaticVolt for more (or read the docs here).

Copyright and License

This software is Copyright (c) 2011 by Alan Haggai Alavi.

This is free software, licensed under:

  1. The Artistic License 2.0 (GPL Compatible)