Awesome
hanami-jbuilder
Adds support for rendering Jbuilder templates using Tilt, fixed for Hanami
Installation
Add this line to your application's Gemfile:
gem 'tilt-jbuilder', github: 'vladfaust/hanami-jbuilder'
And then execute:
$ bundle
Usage
require 'tilt/jbuilder'
somewhere- Remove rendering layout or it will override your *.json.jbuilder files!
module Api
class Application < Hanami::Application
configure do
# The layout to be used by all views
# layout :application # COMMENT IT
- Just add *.json.jbuilder files in templates directory and it'll work
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Credits
tilt-jbuilder is maintained and funded by Sticksnleaves