Sha256: f18f6707b8d56afc7837f5952486ad5f64d302a103bca8743d8e8608d3add9d3
Contents?: true
Size: 384 Bytes
Versions: 36
Compression:
Stored size: 384 Bytes
Contents
module Avv2word module TemplatesHelper def template_file(template_file_name = nil) default_path = File.join(::Avv2word.config.default_templates_path, 'default.docx') template_path = template_file_name.nil? ? '' : File.join(::Avv2word.config.custom_templates_path, template_file_name) File.exist?(template_path) ? template_path : default_path end end end
Version data entries
36 entries across 36 versions & 1 rubygems