Redis-backed queue for Stasis render jobs
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib/stasis
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
stasis-server.gemspec

README.md

Stasis::Server

Redis-backed queue for Stasis render jobs

Build Status

Install

Install via RubyGems:

$ gem install stasis-server

Server Mode

Stasis can run as a server that uses redis to wait for render jobs.

Stasis server that uses redis on port 6379:

$ stasis-server -r localhost:6379/0

Push to the server (in Ruby):

Stasis::Server.push(
  # Paths to render
  :paths => [ "index.html.haml", "subdirectory" ],

  # Made available to views as `params`
  :params => {},

  # Redis address
  :redis => "localhost:6379/0",

  # Return rendered templates (false by default)
  :return => false,

  # Block until templates generate (false by default)
  :wait => false,

  # Write to the filesystem (true by default)
  :write => true,

  # Cache ttl for returned templates (nil by default)
  :ttl => nil,

  # Force write even if cached (false by default)
  :force => false
)