Sha256: 89c5d96275c5f011b4acc6265f484c6f2f7fe20de867b7cb25134a0a6e72344a
Contents?: true
Size: 425 Bytes
Versions: 31
Compression:
Stored size: 425 Bytes
Contents
require 'volt/page/page' # A rack app that renders the html for a component on the backend. 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
Version data entries
31 entries across 31 versions & 1 rubygems