Skip to content

Commit

Permalink
Merge 9c8fcdb into 3aed172
Browse files Browse the repository at this point in the history
  • Loading branch information
Spone committed Apr 2, 2019
2 parents 3aed172 + 9c8fcdb commit da6d942
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Expand Up @@ -6,7 +6,7 @@
- Dropped support for Ruby 2.3 and 2.4
- It's now recommended to use eager loading to prevent `uninitialized component` issues
(see [#121](https://github.com/komposable/komponent/issues/121) for background).

The install generator has been updated. When upgrading, please make sure you replace:

config.autoload_paths << config.root.join("app/frontend/components")
Expand All @@ -19,6 +19,9 @@
- Support for Rails 6
- Refactoring to use `Utils` in `InstallGenerator` and prevent code duplication

**Bug fixes:**
- Fixed empty `h1` in generated `_examples.html.*` file

## v3.0.0.beta1 (2019-02-28)

**Breaking changes:**
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/component/templates/examples.html.erb.erb
@@ -1,3 +1,3 @@
<h1><%= @component_name %></h1>
<h1 class="komponent-title"><%%= @component.title %></h1>

<%%= cdoc "<%= component_name %>" %>
2 changes: 1 addition & 1 deletion lib/generators/component/templates/examples.html.haml.erb
@@ -1,3 +1,3 @@
%h1 <%= @component_name %>
%h1.komponent-title= @component.title

= cdoc "<%= component_name %>"
2 changes: 1 addition & 1 deletion lib/generators/component/templates/examples.html.slim.erb
@@ -1,3 +1,3 @@
h1 <%= @component_name %>
h1.komponent-title= @component.title

= cdoc "<%= component_name %>"
2 changes: 0 additions & 2 deletions lib/generators/komponent/examples_generator.rb
Expand Up @@ -31,8 +31,6 @@ def component_path(component_name)
private

def create_examples_view_file(component_name)
@component_name = split_name(component_name).last.underscore

template "examples.html.#{template_engine}.erb", component_path(component_name) + "_examples.html.#{template_engine}"
end
end
Expand Down

0 comments on commit da6d942

Please sign in to comment.