Method: Alula::Processor#asset_path
- Defined in:
- lib/alula/processor.rb
#asset_path(name, type) ⇒ Object
61 62 63 64 65 66 67 68 |
# File 'lib/alula/processor.rb', line 61 def asset_path(name, type) asset_name = self..asset_name(name, type.to_s) output = File.join(self.site.storage.path(:cache, "attachments"), asset_name) # Make sure our directory exists output_dir = self.site.storage.path(:cache, "attachments", File.dirname(asset_name)) output end |