class Mint::Reactor

Overview

Reactor is the development server of Mint, it has the following features:

Defined in:

reactor.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(host : String, port : Int32, auto_format : Bool, live_reload : Bool) #

[View source]

Class Method Detail

def self.start(host : String, port : Int32, auto_format : Bool, live_reload : Bool) #

[View source]

Instance Method Detail

def ast : Ast #

[View source]
def compile_script #

[View source]
def index #

[View source]
def init(workspace) #

[View source]
def live_reload #

[View source]
def notify #

Notifies all connected sockets to reload the page.


[View source]
def script : String | Nil #

[View source]
def setup_kemal #

Sets up the kemal routes...


[View source]
def terminal #

[View source]
def update(result) #

[View source]
def watch_for_changes #

Sets up watchers to detect changes


[View source]