Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding README.md for GitHub #2

Merged
merged 1 commit into from Jan 29, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
51 changes: 51 additions & 0 deletions README.md
@@ -0,0 +1,51 @@
StaticVolt
==========

**StaticVolt** is a static website generator supporting [Template Toolkit 2](http://template-toolkit.org)
(TT2) layouts and both [Markdown](http://daringfireball.net/projects/markdown/) and Textile content.

Getting Started
==========

* Install using *cpan*, [*cpanm*](http://search.cpan.org/~miyagawa/App-cpanminus-1.5019/bin/cpanm) or from source.
* Create a source and a layout directory:

`mkdir -p docs/{_source,_layouts}`

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

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
[% content %]
</body>
</html>



* Create some content in *_source/index.markdown* with a YAML style header:


---
layout: main.html
drink : water
---
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](http://search.cpan.org/~haggai/StaticVolt-0.03/lib/StaticVolt.pm)).

Copyright and License
==========

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

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)