Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Postview is a simple blog engine (aka. blogware) written in Ruby using the Sinatra DSL for render files written in Markdown.
Ruby JavaScript
Tag: v0.7.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
tasks
test
themes/default
.gitignore
HISTORY
INFO
LICENSE
README.rdoc
Rakefile
VERSION
postview.gemspec

README.rdoc

Postview

Just write your posts … and view!

Postview is a simple blogware written in Ruby using Sinatra DSL that renders files written in Markdown.

  • Easy to configure.

  • Easy to synchronize.

Install Ruby Gem package and try.

Getting start

The Postview requires the following gems:

Install stable gem from RubyForge.org.

$ sudo gem install postview

Or, install development gem from Github.com.

$ sudo gem install hallison-postview --source http://gems.github.com/

So, run command for create and setup a new Postview directory structure.

$ postview create path/to/website

After setup, run server with command:

$ RACK_ENV=production postview server

NOTE: Inopportunely, Postview not run server using production environment, yet.

In your browser, access localhost:9000/.

Create new post

New post can be created by using the task `post`:

$ cd path/to/postview
$ rake post

Following all instructions. Please, set environment variable EDITOR or VISUAL for editing your posts. Ether else, run:

$ cd path/to/postview
$ EDITOR=<your favorite editor> rake post

The new post will be written in drafts directory. You can pass other directory.

$ cd path/to/postview
$ rake post[path/to/other/post/directory]

NOTE: New feature for creates new post from blog manager will be added.

Synchronize your posts

You can synchronize your page using the synchronize tasks. For more information about this task, run rake -D sync.

It's need creates and edit file placed in /your/home/directory/.netrc. The directory attribute most be setted in settings.yml file.

Example:

# remote host
/remote/path/to/postview
`-- posts
    |-- archive
    `-- drafts
# local host
posts
|-- 20090702-foo_post_article.ruby.sinatra.git.mkd
|-- archive
|   `-- 20080702-foo_post_article.ruby.sinatra.git.mkd
`-- drafts
    `-- 20090703-foo_draft_article.ruby.sinatra.git.mkd

# To synchronize posts
$ rake sync:posts
$ rake sync:posts[remote/path/to/postview/posts]

# To synchronize archive
$ rake sync:archive
$ rake sync:archive[remote/path/to/postview/posts/archive]

# To synchronize drafts
$ rake sync:drafts
$ rake sync:drafts[remote/path/to/postview/posts/drafts]

# To synchronize all
$ rake sync:all
Something went wrong with that request. Please try again.