freebsd-ports/devel/rubygem-rabl-rails50/pkg-descr
Sunpoet Po-Chuan Hsieh 1e7faf8297 Update to 0.14.0
- Fix version requirement of RUN_DEPENDS
- Update WWW

Changes:	https://github.com/nesquena/rabl/releases
		https://github.com/nesquena/rabl/blob/master/CHANGELOG.md
2018-11-01 19:17:28 +00:00

16 lines
823 B
Text

RABL (Ruby API Builder Language) is a Rails and Padrino ruby templating system
for generating JSON, XML, MessagePack, PList and BSON. It provides a more
expressive and powerful solution for generating APIs than ActiveRecord's
'to_json' method. It is particularly helpful when the JSON representation is
complex or doesn't match the exact schema defined within the database.
With it, one can easily:
- Create arbitrary nodes with names based on combining data in an object
- Pass arguments to methods and store the result as a child node
- Render partial templates and inherit to reduce code duplication
- Rename or alias attributes to change the name from the model
- Append attributes from a child into a parent node
- Include nodes only if a certain condition has been met
WWW: https://github.com/nesquena/rabl