Sha256: 740d5433e6961feb72c2044b80947b0f76f5e7968f76b0f5ba9bc72c4ab775cc
Contents?: true
Size: 452 Bytes
Versions: 2
Compression:
Stored size: 452 Bytes
Contents
# coding: utf-8 module Retter class Preprint include Page def pathname config.retter_home.join '.preview.html' end def part_layout_pathname Pages.find_layout_path('entry') end def print(entry) part = Tilt.new( part_layout_pathname.to_path, ugly: true, filename: part_layout_pathname.to_path ).render(view_scope, entry: entry) print_with_layout part end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
retter-0.2.2 | lib/retter/preprint.rb |
retter-0.2.1 | lib/retter/preprint.rb |