module Breeze::Extension
Overview
To create an extension you must extend this module
Example:
module BreezeCustom
extend Breeze::Extension
def self.navbar_link : Breeze::NavbarLink
Breeze::NavbarLink.new(link_text: "Custom", link_to: BreezeCustom::Index.path)
end
end
Projects that want to use this extension will need to register it
Breeze.register BreezeCustom
Defined in:
breeze/extension.crInstance Method Summary
- #navbar_link(context : HTTP::Server::Context) : Breeze::NavbarLink
- #navbar_link : Breeze::NavbarLink