Sha256: c741eb186df64e9c5e4d938ba1ee18c04790e7182de6fc2362bd40296ee4cbc8

Contents?: true

Size: 322 Bytes

Versions: 3

Compression:

Stored size: 322 Bytes

Contents

require 'erb'

def app_path
  "#{deploy_to}/#{application}"
end

def system_path
  "#{deploy_to}/system"
end

def media_root_path
  "#{deploy_to}/#{media_root}"
end

def render(template, binding)
  template = File.read("#{File.dirname(__FILE__)}/templates/#{template}.erb")
  result = ERB.new(template).result(binding)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
django-recipes-1.0.0 lib/django-recipes/helpers.rb
django-recipes-0.1.0 lib/django-recipes/helpers.rb
django-recipes-0.0.4 lib/django-recipes/helpers.rb