Module: Spider::LessCompiler

Defined in:
lib/spiderfw/templates/resources/less.rb

Instance Method Summary collapse

Instance Method Details

#compile(src, dest) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/spiderfw/templates/resources/less.rb', line 15

def compile(src, dest)
    output = LessJs.compile File.read(src)
    File.open(dest, 'w') do |f|
        f.write "/* This file is autogenerated; do not edit directly (edit #{src} instead) */\n\n"
        f.write output
    end
end

#intialize(base_path) ⇒ Object



11
12
13
# File 'lib/spiderfw/templates/resources/less.rb', line 11

def intialize(base_path)
    @base_path = base_path
end