Module: Tipsy

Extended by:
Tipsy
Included in:
Tipsy
Defined in:
lib/tipsy/handler/erb.rb,
lib/tipsy.rb,
lib/tipsy/site.rb,
lib/tipsy/view.rb,
lib/tipsy/runner.rb,
lib/tipsy/server.rb,
lib/tipsy/helpers.rb,
lib/tipsy/version.rb,
lib/tipsy/view/base.rb,
lib/tipsy/view/path.rb,
lib/tipsy/utils/tree.rb,
lib/tipsy/handler/php.rb,
lib/tipsy/helpers/tag.rb,
lib/tipsy/handler/sass.rb,
lib/tipsy/helpers/sass.rb,
lib/tipsy/utils/logger.rb,
lib/tipsy/utils/system.rb,
lib/tipsy/view/context.rb,
lib/tipsy/configuration.rb,
lib/tipsy/handler/asset.rb,
lib/tipsy/handler/static.rb,
lib/tipsy/helpers/capture.rb,
lib/tipsy/runners/compiler.rb,
lib/tipsy/runners/deployer.rb,
lib/tipsy/helpers/rendering.rb,
lib/tipsy/runners/generator.rb,
lib/tipsy/utils/system_test.rb,
lib/tipsy/helpers/asset_tags.rb,
lib/tipsy/helpers/asset_paths.rb,
lib/tipsy/handler/sass/importer.rb,
lib/tipsy/handler/sass/resolver.rb,
lib/tipsy/compressors/css_compressor.rb,
lib/tipsy/compressors/javascript_compressor.rb

Overview

This allows support for Rails view helpers.

Defined Under Namespace

Modules: Compressors, Handler, Helpers, Runners, Utils, View Classes: Configuration, Runner, Server, Site

Constant Summary collapse

VERSION =
"0.1.1"

Instance Method Summary collapse

Instance Method Details

#compiling?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/tipsy.rb', line 33

def compiling?
  Tipsy.env == "compile"
end

#envObject



37
38
39
# File 'lib/tipsy.rb', line 37

def env
  @env ||= ENV['TIPSY_ENV'] || 'development'
end

#loggerObject



45
46
47
# File 'lib/tipsy.rb', line 45

def logger
  @logger ||= Tipsy::Utils::Logger.new($stdout)
end

#rootObject



41
42
43
# File 'lib/tipsy.rb', line 41

def root
  @root ||= ENV['TIPSY_ROOT']
end