Sha256: 38da2225711d1b2ead2575f93ef6f0daa704d47dec1a156351060e584b759bc7
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
require 'wlog/domain/key_value' require 'wlog/domain/static_configurations' module Wlog # Bunlde helper functions for templates here # @author Simon Symeonidis class TemplateHelper include StaticConfigurations # @return absolute path to the template the user has set def self.template_file num = KeyValue.get('template') || 1 Dir[TemplateDir + '*'][num.to_i - 1] end # @return template contents of the current selected template def self.template_s File.read(TemplateHelper.template_file) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wlog-1.2.2 | lib/wlog/domain/template_helper.rb |