Sha256: ef17a86ce379a0fb2cbb5094d62540ac6efacc0b92048fd387b758b3ad4b98ff
Contents?: true
Size: 499 Bytes
Versions: 31
Compression:
Stored size: 499 Bytes
Contents
require 'volt/page/page' # A rack app that renders the html for a component on the backend. module Volt class ComponentHtmlRenderer def initialize end def call(env) req = Rack::Request.new(env) path = req.path # For now just assume main component_name = 'main' page = Page.new component_paths = ComponentPaths.new(Volt.root) code = ComponentCode.new(component_name, component_paths).code end end end
Version data entries
31 entries across 31 versions & 1 rubygems