class Volt::BaseIndexRenderer
Public Class Methods
new(volt_app, manifest)
click to toggle source
# File lib/volt/cli/base_index_renderer.rb, line 6 def initialize(volt_app, manifest) @volt_app = volt_app @manifest = manifest end
Public Instance Methods
html()
click to toggle source
# File lib/volt/cli/base_index_renderer.rb, line 11 def html index_path = File.expand_path(File.join(Volt.root, 'config/base/index.html')) html = File.read(index_path) ERB.new(html, nil, '-').result(binding) end