Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CONFIG = YAML.load_file("#{File.dirname(__FILE__)}/../config/config.yml") unless defined? CONFIG
- module Formatter
- def self.templates
- "#{APP_ROOT}/#{CONFIG['template_dir']}"
- end
- def self.stylesheet
- "#{self.templates}/#{CONFIG['stylesheet']}"
- end
- def self.body_template
- "#{self.templates}/#{CONFIG['body_template']}"
- end
- def self.footer_template
- "#{self.templates}/#{CONFIG['footer_template']}"
- end
- def self.legal_string
- CONFIG['legal_string']
- end
- end
Add Comment
Please, Sign In to add comment