Class Nanoc::Extra::AutoCompiler
In: lib/nanoc/extra/auto_compiler.rb
Parent: Object

A web server that will automatically compile items as they are requested. It also serves static files such as stylesheets and images.

Methods

call   new  

Attributes

site  [R]  @return [Nanoc::Site] The site this autocompiler belongs to

Public Class methods

Creates a new autocompiler for the given site.

@param [String] site_path The path to the site to autocompile

Public Instance methods

Calls the autocompiler. The behaviour of this method is defined by the [Rack specification](rack.rubyforge.org/doc/files/SPEC.html).

@param [Hash] env The environment, as defined by the Rack specification

@return [Array] An array containing the status, the headers, and the

  body, as defined by the Rack specification

[Validate]