amatsuda / jb

A simple and fast JSON API template engine for Ruby on Rails
MIT License
1.29k stars 43 forks source link

Using alongside jBuilder #36

Open warunacds opened 3 years ago

warunacds commented 3 years ago

Is it possible to use jb alongside jBuilder, if so are there any examples available.

RobBikmansurov commented 3 years ago

You can in the transition period use both gems jb and jbuilder together in the same project. Just add both gems to the Gemfile. Then use jb syntax in .json.jb views and jbuilder syntax in .json.jbuilder views.