lib/alephant/renderer.rb in alephant-renderer-0.2.0 vs lib/alephant/renderer.rb in alephant-renderer-0.3.0

- old
+ new

@@ -1,15 +1,18 @@ require 'alephant/renderer/version' require 'alephant/renderer/view_mapper' +require 'alephant/logger' module Alephant module Renderer def self.create(config, data) Renderer.new(config, data) end class Renderer + include Logger + attr_reader :config, :data def initialize(config, data) @config = config @data = data @@ -20,9 +23,10 @@ end private def mapper + logger.info "Renderer#mapper: renderer id '#{config[:renderer_id]}', view path '#{config[:view_path]}'" @mapper ||= ViewMapper.new( config[:renderer_id], config[:view_path] ) end