Method: Compass::Actions#copy
- Defined in:
- lib/compass/actions.rb
#copy(from, to, options = nil, binary = false) ⇒ Object
copy/process a template in the compass template directory to the project directory.
11 12 13 14 15 16 17 18 19 |
# File 'lib/compass/actions.rb', line 11 def copy(from, to, = nil, binary = false) ||= self. if self.respond_to?(:options) if binary contents = File.new(from,"rb").read else contents = File.new(from).read end write_file to, contents, , binary end |