module Requirejs

Public: A Tilt template to compile Stylus stylesheets.

Examples

template = Tilt::StylusTemplate.new { |t| File.read('app.styl') }
template.render # => the compiled CSS from the app.styl file.

Options should assigned on the template constructor.
template = Tilt::StylusTemplate.new(compress: true) { |t| File.read('app.styl') }
template.render # => the compiled CSS with compression enabled.

Public: A Tilt template to compile Stylus stylesheets.

Examples

template = Tilt::StylusTemplate.new { |t| File.read('app.styl') }
template.render # => the compiled CSS from the app.styl file.

Options should assigned on the template constructor.
template = Tilt::StylusTemplate.new(compress: true) { |t| File.read('app.styl') }
template.render # => the compiled CSS with compression enabled.

Public Class Methods

config() click to toggle source
# File lib/requirejs/config.rb, line 69
def self.config
  @config
end
config=(config) click to toggle source

Config accessors

# File lib/requirejs/config.rb, line 65
def self.config=(config)
  @config = config
end