Class: Templater::Actions::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/staticmatic/builder.rb

Overview

Monkey-patch to use a dynamic renderer, not just ERb

Instance Method Summary collapse

Instance Method Details

#renderObject



46
47
48
49
# File 'lib/staticmatic/builder.rb', line 46

def render
  request_path = destination.gsub(File.join(Dir.pwd, 'build'), "")
  ::MerbProxy.new.get(request_path).body
end