blob: 0d0ac21c53bc9c168a4eada0d61e4cb5bccee8b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
module FileContent
def file_content(filename)
(@file_contents ||= {})[filename] ||= File.read(file_path(filename))
end
def file_path(filename)
"%s/files/%s" % [File.dirname(__FILE__), filename]
end
end
|