Sha256: e2ef962bf7485f9d5e9437d786bbb08c0f544435e78815bfe75da9256a7bf3ef
Contents?: true
Size: 323 Bytes
Versions: 2
Compression:
Stored size: 323 Bytes
Contents
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) require 'erb' template = File.read("#{File.dirname(__FILE__)}/templates/#{template}.erb") result = ERB.new(template).result(binding) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
django-recipes-0.0.2 | lib/helpers.rb |
django-recipes-0.0.1 | lib/helpers.rb |