module Celestite

Defined in:

celestite.cr
celestite/amber.cr
celestite/context.cr
celestite/engine.cr
celestite/renderer.cr
celestite/version.cr

Constant Summary

VERSION = "0.1.3"

Class Method Summary

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


[View source]
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.


[View source]
def self.renderer #

This might be replaceable with a 'getter' - can you do that for class vars?


[View source]