class Nanoc::Core::CompilationContext
Constants
- C_COMPILED_CONTENT_CACHE
Attributes
compiled_content_cache[R]
compiled_content_store[R]
reps[R]
site[R]
Public Class Methods
new(action_provider:, reps:, site:, compiled_content_cache:, compiled_content_store:)
click to toggle source
# File lib/nanoc/core/compilation_context.rb, line 46 def initialize(action_provider:, reps:, site:, compiled_content_cache:, compiled_content_store:) @action_provider = action_provider @reps = reps @site = site @compiled_content_cache = compiled_content_cache @compiled_content_store = compiled_content_store end
Public Instance Methods
filter_name_and_args_for_layout(layout)
click to toggle source
# File lib/nanoc/core/compilation_context.rb, line 55 def filter_name_and_args_for_layout(layout) seq = @action_provider.action_sequence_for(layout) if seq.nil? || seq.size != 1 || !seq[0].is_a?(Nanoc::Core::ProcessingActions::Filter) raise UndefinedFilterForLayoutError.new(layout) end FilterNameAndArgs.new(name: seq[0].filter_name, args: seq[0].params) end