Group :: Desenvolvimento/Ruby
RPM: gem-rabl
Principal Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
A versão atual: 0.16.0-alt1
Data da compilação: 16 outubro 2022, 12:23 ( 79.8 weeks ago )
Tamanho:: 97.31 Kb
Home page: https://github.com/nesquena/rabl
Licença: MIT
Sumário: General ruby templating with json, bson, xml, plist and msgpack support
Descrição:
Lista dos contribuidores Lista dos rpms provida por esta srpm:
ACL:
Data da compilação: 16 outubro 2022, 12:23 ( 79.8 weeks ago )
Tamanho:: 97.31 Kb
Home page: https://github.com/nesquena/rabl
Licença: MIT
Sumário: General ruby templating with json, bson, xml, plist and msgpack support
Descrição:
RABL (Ruby API Builder Language) is a Rails and Padrino ruby templating system
for generating JSON, XML, MessagePack, PList and BSON. When using the
ActiveRecord 'to_json' method, I find myself wanting a more expressive and
powerful solution for generating APIs. This is especially true when the JSON
representation is complex or doesn't match the exact schema defined within the
database.
In particular, I want to easily:
* Create arbitrary nodes named 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
Anyone who has tried the 'to_json' method used in ActiveRecord for generating a
JSON response has felt the pain of this restrictive approach. RABL is a general
templating system created to solve these problems by approaching API response
generation in an entirely new way.
RABL at the core is all about adhering to MVC principles by deferring API data
representations to the view layer of your application. For a breakdown of common
misconceptions about RABL, please check out our guide to understanding RABL,
which can help clear up any confusion about this project.
Mantenedor currente: Ruby Maintainers Team for generating JSON, XML, MessagePack, PList and BSON. When using the
ActiveRecord 'to_json' method, I find myself wanting a more expressive and
powerful solution for generating APIs. This is especially true when the JSON
representation is complex or doesn't match the exact schema defined within the
database.
In particular, I want to easily:
* Create arbitrary nodes named 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
Anyone who has tried the 'to_json' method used in ActiveRecord for generating a
JSON response has felt the pain of this restrictive approach. RABL is a general
templating system created to solve these problems by approaching API response
generation in an entirely new way.
RABL at the core is all about adhering to MVC principles by deferring API data
representations to the view layer of your application. For a breakdown of common
misconceptions about RABL, please check out our guide to understanding RABL,
which can help clear up any confusion about this project.
Lista dos contribuidores Lista dos rpms provida por esta srpm:
- gem-rabl
- gem-rabl-devel
- gem-rabl-doc