lib/jekyll-slim.rb in jekyll-slim-0.8.2 vs lib/jekyll-slim.rb in jekyll-slim-0.9.0

- old
+ new

@@ -1,27 +1,8 @@ require 'slim' require 'jekyll-slim/version' +require 'jekyll-slim/extensions/layout' +require 'jekyll-slim/extensions/site' +require 'jekyll-slim/extensions/converter' +require 'jekyll-slim/slim_converter' +require 'jekyll-slim/slim_context' require 'jekyll-slim/tags/slim_partial' -require 'jekyll-slim/ext/layout' - -module Jekyll - class SlimConverter < Converter - safe true - priority :low - - def matches(ext) - ext =~ /slim/i - end - - def output_ext(ext) - ".html" - end - - def convert(content) - begin - ::Slim::Template.new { content }.render - rescue StandardError => e - puts "(!) SLIM ERROR: " + e.message - end - end - end -end