Sha256: cf552d2912f102bb87b0ced8ee1857ea1399c0da46c1977d8a36290dcf276733
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
require 'slim' require 'jekyll-slim/version' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-slim-0.7.0 | lib/jekyll-slim.rb |