Class: Octopress::Ink::Assets::LocalTemplate

Inherits:
Template show all
Defined in:
lib/octopress-ink/assets/local_template.rb

Constant Summary

Constants inherited from Asset

Asset::FRONT_MATTER

Instance Attribute Summary

Attributes inherited from Template

#pages

Attributes inherited from Asset

#base, #dir, #exists, #file, #plugin, #replacement, #root

Instance Method Summary collapse

Methods inherited from Template

#add, #info, #new_page, #page_exists?

Methods inherited from Asset

#add, #asset_info, #content, #copy, #data, #destination, #disable, #disabled?, #ext, #filename, #info, #is_disabled, #payload, #read, #remove_jekyll_asset, #replaced?

Constructor Details

#initialize(plugin, base, layout) ⇒ LocalTemplate

Returns a new instance of LocalTemplate.



5
6
7
8
# File 'lib/octopress-ink/assets/local_template.rb', line 5

def initialize(plugin, base, layout)
  @layout = layout
  super(plugin, base, layout.name)
end

Instance Method Details

#pathObject



10
11
12
# File 'lib/octopress-ink/assets/local_template.rb', line 10

def path
  plugin_path
end

#plugin_pathObject



14
15
16
# File 'lib/octopress-ink/assets/local_template.rb', line 14

def plugin_path
  File.join(base, file)
end