- Add
fetch
node
- Fix bug when template contains double quotes
- Remove Rails 6+ warnings
- Uniformize node options
- Refresh README.md
- Add
lookup
node
- Relax concurrent-ruby version dependency (javierjulio)
- Allow
extends
to accept lambdas
- Add
const
node
- Fix bug when trying to compile partials with caching enabled
- Add requirement ruby >= 2.2
- Drop support for Rails < 4.2
- Replace
thread_safe
withconcurrent_ruby
- Remove custom responder
- Remove rendering outside of Rails
- Improve Rails 5 compatibility
- Fix custom responder compatibility with responders 2.1 (itkin)
- Fix bug when template was already loaded by ActionView and causing a nil error
- Allow to pass locals to partials
- Add condition to
attributes
- Make classes that should not be treated as collection configurable
- Internal change to determine rendering format
- Internal cleanup and refactor
- Remove the
allow_empty_format_in_template
option, since it has become the default behavior. - Remove multi_json dependency
- New options available
- replace_nil_values_with_empty_strings
- replace_empty_string_values_with_nil
- exclude_nil_values
-
Add
xml_options
option to root_level (brettallred) -
Format can be omitted in template filename
RablRails.allow_empty_format_in_template = true RablRails.render(user, 'show') # => app/view/user.rabl
-
Rails 4 support
-
Update travis configuration and remove warning in tests (petergoldstein)
- Add response caching
- Using child with a nil value will be correctly formatted as nil
- Allow controller's assigns to have symbol keys
- Does not modify in place format extracted from context
- Add JSONP support
- Add
merge
keywork - Format can be passed as a string or a symbol
- Avoid to unexpectedly change cached templates (johnbintz)
- Add full template stack support to
glue
(fnordfish) - Allow format to be a symbol (lloydmeta)
- Travis integration
- Add test for keywords used as variable names
- Add PList renderer
- Remove location header from post responses in responder
- Fix bug with incomplete template prefixing
- Add condition blocks
- Avoid useless render on POST request with custom responder
- Custom responder now fallback to Rails default in case the template is not found
- Add
root
in DSL to set root without changing the data source - Add XML renderer
- Use MultiJson's preferred JSON engine as default (shmeltex)
- Default template to render with responder can be set per controller
- Reponder works out of the box with devise
- object or collection can be skipped if use with
respond_to
blocks
- Render correctly when variables are not passed via the assigns ivar but as helper methods (decent_exposure, focused_controller)
- Add custom Responder
- Add RablRails#render method (see README or source code)
- Fix fail when JSON engine is not found. Now fallback to MultiJson.default_adapter
- Warning message printed on logger when JSON engine fail to load
- Add CHANGELOG
- Remove unused test in loop
- Speed up rendering by not double copying variable from context
- Rename private variable to avoid name conflict
- Remove sqlite3 development dependency