BSD Ports

devel/rubygem-rabl 0.17.0 DragonFly

General ruby templating with json, bson, xml and msgpack support

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, rubygems
Package size
27.6 KiB, 96.8 KiB installed

Description

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

In the other systems

SystemPortVersion
DragonFlydevel/rubygem-rabl0.17.0
FreeBSDdevel/rubygem-rabl0.17.0
HardenedBSDdevel/rubygem-rabl0.17.0
GhostBSDdevel/rubygem-rabl0.17.0

Install

Binary package:

pkg install rubygem-rabl

From DPorts:

cd /usr/dports/devel/rubygem-rabl && make install clean

Dependencies

Run dependencies 3

No port depends on this one.