forker
forker

Reputation: 2679

Single DSL to generate different representations in rails

I like the idea of using a single DSL to generate different representations and for that purpose I'm currently using Hypertemplate packed into Restfulie:

But seeing the low number of watchers and forks on these projects I feel being very off the common trend, so I probably miss something.

What is the common way to describe cross-format representations?

Upvotes: 1

Views: 77

Answers (1)

shingara
shingara

Reputation: 46914

The better gem to do that is rabl

Rabl support a lot of representation :

  • JSON
  • XML
  • MessagePack
  • BSON
  • Plist

Upvotes: 2

Related Questions