Module: Serve

Defined in:
lib/serve/out.rb,
lib/serve/path.rb,
lib/serve/rack.rb,
lib/serve/export.rb,
lib/serve/router.rb,
lib/serve/version.rb,
lib/serve/project.rb,
lib/serve/pipeline.rb,
lib/serve/javascripts.rb,
lib/serve/application.rb,
lib/serve/view_helpers.rb,
lib/serve/handlers/less_handler.rb,
lib/serve/handlers/sass_handler.rb,
lib/serve/handlers/email_handler.rb,
lib/serve/handlers/coffee_handler.rb,
lib/serve/handlers/dynamic_handler.rb,
lib/serve/handlers/redirect_handler.rb,
lib/serve/handlers/file_type_handler.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ContentHelpers, EscapeHelpers, FlashHelpers, JavaScripts, Out, ParamHelpers, Path, RenderHelpers, Router, TagHelpers, ViewHelpers Classes: Application, CoffeeHandler, DynamicHandler, EmailHandler, Exporter, FileTypeHandler, Headers, LessHandler, Pipeline, Project, RackAdapter, RedirectHandler, Request, Response, SassHandler

Class Method Summary collapse

Class Method Details

.export(options = {}) ⇒ Object



155
156
157
# File 'lib/serve/export.rb', line 155

def self.export(options={})
  Exporter.new(options).process
end

.versionObject



2
3
4
5
6
7
# File 'lib/serve/version.rb', line 2

def self.version
  @version ||= begin
    filename = File.join(File.dirname(__FILE__), '..', '..', 'VERSION')
    IO.read(filename).strip
  end
end