module FPM::Fry::Plugin::ScriptHelper::RenderErb
Public Instance Methods
render_path(script, path)
click to toggle source
# File lib/fpm/fry/plugin/script_helper.rb, line 22 def render_path(script, path) _erbout = "" erb = ERB.new( IO.read(File.join(File.dirname(__FILE__),'..','templates',path, "#{script.name}.erb")) ) script.instance_eval(erb.src) return _erbout end