Class: Templater::Actions::Template
- Inherits:
-
Object
- Object
- Templater::Actions::Template
- Defined in:
- lib/staticmatic/builder.rb
Overview
Monkey-patch to use a dynamic renderer, not just ERb
Instance Method Summary collapse
Instance Method Details
#render ⇒ Object
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 |