Module: Plato::Repo::TemplateCodec
Instance Method Summary collapse
Instance Method Details
#read(path) ⇒ Object
101 102 103 104 105 106 107 |
# File 'lib/plato/repo.rb', line 101 def read(path) if template_class = Tilt[path] template_class.new(path) else path end end |
#write(path, data) ⇒ Object
109 110 111 |
# File 'lib/plato/repo.rb', line 109 def write(path, data) raise "Templates cannot be directly written" end |