Sha256: c08aa77f726aef03feb66192af620829317d84a748be2542ea5e2b2bcf3c066c
Contents?: true
Size: 425 Bytes
Versions: 5
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 home component_name = 'home' page = Page.new component_paths = ComponentPaths.new(Volt.root) code = ComponentCode.new(component_name, component_paths).code end end
Version data entries
5 entries across 5 versions & 1 rubygems