Module: Quintype::Liquid::FileSystemCacheReadFile
- Included in:
- FileSystem
- Defined in:
- lib/quintype/liquid/file_system.rb
Instance Method Summary collapse
Instance Method Details
#read_file(path) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/quintype/liquid/file_system.rb', line 3 def read_file(path) @cached_templates ||= Concurrent::Map.new do |m, path| m[path] = super(path) end @cached_templates[path] end |