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
ms_deploy-0.1.7 lib/ms_deploy/render.rb
ms_deploy-0.1.6 lib/ms_deploy/render.rb
ms_deploy-0.1.5 lib/ms_deploy/render.rb
ms_deploy-0.1.4 lib/ms_deploy/render.rb
ms_deploy-0.1.3 lib/ms_deploy/render.rb
ms_deploy-0.1.2 lib/ms_deploy/render.rb
ms_deploy-0.1.1 lib/ms_deploy/render.rb
ms_deploy-0.0.11 lib/ms_deploy/render.rb
ms_deploy-0.0.10 lib/ms_deploy/render.rb
ms_deploy-0.0.7 lib/ms_deploy/render.rb
ms_deploy-0.0.6 lib/ms_deploy/render.rb
ms_deploy-0.0.5 lib/ms_deploy/render.rb
ms_deploy-0.0.4 lib/ms_deploy/render.rb
ms_deploy-0.0.3 lib/ms_deploy/render.rb
ms_deploy-0.0.2 lib/ms_deploy/render.rb
ms_deploy-0.0.1 lib/ms_deploy/render.rb