Class: Jekyll::ContentBlocks::PreRenderHook
- Inherits:
-
Object
- Object
- Jekyll::ContentBlocks::PreRenderHook
- Defined in:
- lib/jekyll/content_blocks/pre_render_hook.rb
Class Method Summary collapse
Class Method Details
.call(document, payload) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/jekyll/content_blocks/pre_render_hook.rb', line 4 def self.call(document, payload) payload['converters'] = document.site.converters.select do |converter| file_extension = File.extname(document.path) converter.matches(file_extension) end payload['contentblocks'] = {} end |