Class: Octopress::Ink::Assets::LocalTemplate
- Defined in:
- lib/octopress-ink/assets/local_template.rb
Constant Summary
Constants inherited from Asset
Instance Attribute Summary
Attributes inherited from Template
Attributes inherited from Asset
#base, #dir, #exists, #file, #plugin, #replacement, #root
Instance Method Summary collapse
-
#initialize(plugin, base, layout) ⇒ LocalTemplate
constructor
A new instance of LocalTemplate.
- #path ⇒ Object
- #plugin_path ⇒ Object
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
#path ⇒ Object
10 11 12 |
# File 'lib/octopress-ink/assets/local_template.rb', line 10 def path plugin_path end |
#plugin_path ⇒ Object
14 15 16 |
# File 'lib/octopress-ink/assets/local_template.rb', line 14 def plugin_path File.join(base, file) end |