Sha256: f11967e32be864b362e5857c17dcdfd81db70ee05abe3f28b0ecc9c10481c1c6

Contents?: true

Size: 240 Bytes

Versions: 56

Compression:

Stored size: 240 Bytes

Contents

require 'erubis'

def render_erb_template(template_path, vars={})
  raise "file '#{template_path}' not exists" unless File.exist? template_path

  template = File.open(template_path, 'r').read
  Erubis::Eruby.new(template).result(vars)
end

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
caploy-0.1.4 lib/caploy/render.rb
caploy-0.1.3 lib/caploy/render.rb
caploy-0.1.2 lib/caploy/render.rb
caploy-0.1.1 lib/caploy/render.rb
caploy-0.1.0 lib/caploy/render.rb
ms_deploy-0.3.6 lib/ms_deploy/render.rb
ms_deploy-0.3.5 lib/ms_deploy/render.rb
ms_deploy-0.3.4 lib/ms_deploy/render.rb
ms_deploy-0.3.3 lib/ms_deploy/render.rb
ms_deploy-0.3.2 lib/ms_deploy/render.rb
ms_deploy-0.3.1 lib/ms_deploy/render.rb
ms_deploy-0.3.0 lib/ms_deploy/render.rb
ms_deploy-0.2.5 lib/ms_deploy/render.rb
ms_deploy-0.2.4 lib/ms_deploy/render.rb
ms_deploy-0.2.3 lib/ms_deploy/render.rb
ms_deploy-0.2.2 lib/ms_deploy/render.rb
ms_deploy-0.2.1 lib/ms_deploy/render.rb
ms_deploy-0.2.0 lib/ms_deploy/render.rb
ms_deploy-0.1.9 lib/ms_deploy/render.rb
ms_deploy-0.1.8 lib/ms_deploy/render.rb