class Schoolkeep::Template::PartialLoader

Attributes

path[R]

Public Class Methods

new(path) click to toggle source
# File lib/schoolkeep/template.rb, line 56
def initialize(path)
  @path = path
end

Public Instance Methods

load(name) click to toggle source
# File lib/schoolkeep/template.rb, line 60
def load(name)
  name = "_#{name}.html.sktl"
  partial_path = File.join(path, name)
  ::Scribble::Partial.new File.read(partial_path)
end