Skip to content

Commit

Permalink
feat: Include ComponentRegistrar by default (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephannv authored Sep 13, 2024
1 parent ea82b98 commit 55b7ac5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions spec/blueprint/html/components_registration_spec.cr
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
require "../../spec_helper"

require "../../../src/blueprint/html/component_registrar"

private class ExamplePage
include Blueprint::HTML
include Blueprint::HTML::ComponentRegistrar

register_component :component_with_block, ComponentWithBlock
register_component :component_without_block, ComponentWithoutBlock, block: false
Expand Down
2 changes: 2 additions & 0 deletions src/blueprint/html.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require "html"
require "./html/attributes_handler"
require "./html/block_renderer"
require "./html/builder"
require "./html/component_registrar"
require "./html/component_renderer"
require "./html/element_registrar"
require "./html/element_renderer"
Expand All @@ -15,6 +16,7 @@ require "./html/utils"
module Blueprint::HTML
include Blueprint::HTML::AttributesHandler
include Blueprint::HTML::BlockRenderer
include Blueprint::HTML::ComponentRegistrar
include Blueprint::HTML::ComponentRenderer
include Blueprint::HTML::ElementRegistrar
include Blueprint::HTML::ElementRenderer
Expand Down

0 comments on commit 55b7ac5

Please sign in to comment.