lib/toto.rb in ceilingfish-toto-0.3.7 vs lib/toto.rb in ceilingfish-toto-0.3.8

- old
+ new

@@ -81,9 +81,18 @@ end def articles ext = self[:ext] Dir["#{Paths[:articles]}/*.#{ext}"] end + + def root + self[:root] + end + + def import(file) + file = "#{Paths[:templates]}/#{file}" unless file =~ /^#{Paths[:templates]}/ + ERB.new(File.read(file)).result(binding) + end end class Site include PageHelpers