Module: Leftovers::Precompilers::Slim
- Defined in:
- lib/leftovers/precompilers/slim.rb
Class Method Summary collapse
Class Method Details
.precompile(file) ⇒ Object
8 9 10 11 12 |
# File 'lib/leftovers/precompilers/slim.rb', line 8 def self.precompile(file) ::Slim::Engine.new(file: file).call(file) rescue ::Slim::Parser::SyntaxError => e raise PrecompileError.new(e.error, line: e.lineno, column: e.column) end |