class Dassets::Lessv1::Compiler
This is a little wrapper class to the less engine. I use this to access and set the `@path` instance variable on the engine. This sets the root path all imports are done from to the path of the source the engine was registered on. This allows you to import partials relative to the source.
Attributes
path[R]
Public Class Methods
new(content, opts)
click to toggle source
Calls superclass method
# File lib/dassets-lessv1.rb, line 30 def initialize(content, opts) @path = opts['source_path'] super end