diff --git a/spec/blueprint/html/components_registration_spec.cr b/spec/blueprint/html/components_registration_spec.cr index 4e13c04..40a69f6 100644 --- a/spec/blueprint/html/components_registration_spec.cr +++ b/spec/blueprint/html/components_registration_spec.cr @@ -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 diff --git a/src/blueprint/html.cr b/src/blueprint/html.cr index 695d7cc..8497115 100644 --- a/src/blueprint/html.cr +++ b/src/blueprint/html.cr @@ -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" @@ -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