class TemplateLoader
TemplateLoader
reads a template from `.slim' file and builds a Template
object that may render HTML given a hash with documentation and theme.
Public Class Methods
new(options)
click to toggle source
# File lib/rdoc/generator/template_loader.rb, line 17 def initialize(options) @options = options end
template_path(name)
click to toggle source
# File lib/rdoc/generator/template_loader.rb, line 13 def self.template_path(name) Settings.find_file 'templates', '.slim', name end
templates_list()
click to toggle source
# File lib/rdoc/generator/template_loader.rb, line 9 def self.templates_list Settings.list_file_names 'templates', '.slim' end
Public Instance Methods
load()
click to toggle source
# File lib/rdoc/generator/template_loader.rb, line 21 def load Template.new @options.sf_template end