Sha256: 11752e1082009b7b8c845642e608e5cc03212b6e6992d85b9846524c5fb36f30
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
# coding: utf-8 class Retter::Pages::Entry include Retter::Page attr_reader :entry def initialize(entry) super() @path_prefix = '../' @entry = entry @title = "#{entry.date} - #{config.title}" end def pathname config.entry_file(entry.date) end def part_layout_pathname config.entry_layout_file end def print part = Haml::Engine.new(part_layout_pathname.read, ugly: true).render(view_scope, entry: entry) print_with_layout part end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
retter-0.1.1 | lib/retter/pages/entry.rb |