Skip to content

Support for rendering Jbuilder templates in Tilt in Hanami

License

Notifications You must be signed in to change notification settings

vladfaust/hanami-jbuilder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. require 'tilt/jbuilder' somewhere
  2. 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
  1. Just add *.json.jbuilder files in templates directory and it'll work

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Credits

Sticksnleaves

tilt-jbuilder is maintained and funded by Sticksnleaves

About

Support for rendering Jbuilder templates in Tilt in Hanami

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%