https://github.com/shihokambara/current_template
Rails plugin for displaying name of the current template file
https://github.com/shihokambara/current_template
gem gems rails rails-application rails5 ruby ruby-library ruby-on-rails rubygem rubygems
Last synced: 4 months ago
JSON representation
Rails plugin for displaying name of the current template file
- Host: GitHub
- URL: https://github.com/shihokambara/current_template
- Owner: shihokambara
- License: mit
- Created: 2017-09-03T06:41:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-05T12:54:02.000Z (over 8 years ago)
- Last Synced: 2024-10-29T14:18:10.573Z (over 1 year ago)
- Topics: gem, gems, rails, rails-application, rails5, ruby, ruby-library, ruby-on-rails, rubygem, rubygems
- Language: Ruby
- Homepage:
- Size: 6.22 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# CurrentTemplate
[](https://badge.fury.io/rb/current_template)
[](https://gemnasium.com/github.com/shihokambara/current_template)
Display name of the current template file, including partial template.
## Demo

## Feature
This gem inspects `log/development.log` and gets partial name from it!
It doesn't override any method.
This gem also supports haml and slim.
## Installation
Add this line to your application's Gemfile:
```ruby
group :development do
gem install 'current_template'
end
```
And then add this line to app/view/layout/application.html.erb
```ruby
<% if Rails.env == 'development' %>
<%= show_current_template %>
<% end %>
```
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
## Author
[shiho kambara](https://github.com/shihokambara)