Sha256: f6a1044932d8310d138fcec77adce3fc93a84341a6c23cad3d3a24ffbeb565b7
Contents?: true
Size: 492 Bytes
Versions: 2
Compression:
Stored size: 492 Bytes
Contents
require 'slim' require 'jekyll-slim/version' require 'jekyll-slim/tags/slim_partial' require 'jekyll-slim/ext/convertible' 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-slim-0.8.1 | lib/jekyll-slim.rb |
jekyll-slim-0.8.0 | lib/jekyll-slim.rb |