Sha256: e90f94e9e80d29c6ebfeea35190fa64ab0f5f27d415bf59e66c64317279e4599

Contents?: true

Size: 391 Bytes

Versions: 7

Compression:

Stored size: 391 Bytes

Contents

# encoding: utf-8

module Nanoc3::Filters
  class Less < Nanoc3::Filter

    # Runs the content through [LESS](http://lesscss.org/).
    # This method takes no options.
    #
    # @param [String] content The content to filter
    #
    # @return [String] The filtered content
    def run(content, params={})
      require 'less'

      ::Less::Engine.new(content).to_css
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nanoc3-3.1.3 lib/nanoc3/filters/less.rb
nanoc3-3.2.0a1 lib/nanoc3/filters/less.rb
nanoc3-3.1.2 lib/nanoc3/filters/less.rb
nanoc3-3.1.1 lib/nanoc3/filters/less.rb
nanoc3-3.1.0 lib/nanoc3/filters/less.rb
nanoc3-3.1.0rc1 lib/nanoc3/filters/less.rb
nanoc3-3.1.0b2 lib/nanoc3/filters/less.rb