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.cr

Instance Method Summary

Instance Method Detail

def navbar_link(context : HTTP::Server::Context) : Breeze::NavbarLink #

[View source]
abstract def navbar_link : Breeze::NavbarLink #

[View source]