lib/heartml/bridgetown_renderer.rb in heartml-1.0.0.beta14 vs lib/heartml/bridgetown_renderer.rb in heartml-1.0.0.beta15

- old
+ new

@@ -26,9 +26,13 @@ self.rendering_mode = rendering_mode super(view_context, &block) end end + Heartml::ClassMethods.module_eval do + def component_template_path = heart_module + end + # Eager load all components config.hook :site, :after_reset do |site| unless site.config.eager_load_paths.find { _1.end_with?(site.config.components_dir) } site.config.eager_load_paths << site.config.autoload_paths.find { _1.end_with?(site.config.components_dir) } end