module Celestite
Defined in:
celestite.crcelestite/amber.cr
celestite/context.cr
celestite/engine.cr
celestite/renderer.cr
celestite/version.cr
Constant Summary
-
VERSION =
"0.1.3"
Class Method Summary
-
.initialize(engine : Celestite::Engine, component_dir, routes_file = nil, port = 4000, template_dir = nil, default_template = nil, build_dir = nil, build_dir_public_path = nil) : Renderer
Celestite.initialize does the full range of initialization (launches all processes) to get the renderer going
-
.render(path : String | Nil, context : Celestite::Context | Nil = nil, template : String | Nil = @@default_template)
This exposes the render class on the module, in cases (i.e.
-
.renderer
This might be replaceable with a 'getter' - can you do that for class vars?
Class Method Detail
def self.initialize(engine : Celestite::Engine, component_dir, routes_file = nil, port = 4000, template_dir = nil, default_template = nil, build_dir = nil, build_dir_public_path = nil) : Renderer
#
Celestite.initialize does the full range of initialization (launches all processes) to get the renderer going
def self.render(path : String | Nil, context : Celestite::Context | Nil = nil, template : String | Nil = @@default_template)
#
This exposes the render class on the module, in cases (i.e. Amber) where you can't easily pass around the render instance.