module
Components::AmberIntegration::ViewHelpers
Overview
Add reactive handler to Amber pipeline
Usage in config/routes.cr: pipeline :web do plug Components::Integration.reactive_handler end View helper module
Defined in:
components/integration.crInstance Method Summary
-
#component(klass : Component.class, **params)
Render a component in a view
-
#css(&block : CSS::ClassBuilder -> Nil) : String
CSS builder DSL
-
#css_styles(config : CSS::Config | Nil = nil, mode : Symbol = :development)
Include CSS styles
-
#reactive_scripts(debug = false)
Include reactive JavaScript
Instance Method Detail
Include CSS styles