ccocchi / rabl-rails

Rails 4.2+ templating system with JSON, XML and Plist support.
MIT License
209 stars 51 forks source link

Other renderer support (plist?) #9

Closed onyxraven closed 11 years ago

onyxraven commented 11 years ago

Any plans on adding more renderers, like plist? I'm using rabl now, was considering switching over for better performance, but i'm using the plist renderer for a couple endpoints. Is this something easy to add?

ccocchi commented 11 years ago

Yeah it is really easy. You can check JSON or XML renderers as example but it should not be longer than

def format_output(hash)
 some_options_parsing
 YourPlistEngine.dump(hash)
end

because rabl-rails already convert your templates as hashes. But tests are a little bit longer to write ;)

Sorry for the late response I don't have really much time right now, but I added Plist engine to my todo list

ccocchi commented 11 years ago

PList format has been added to rabl-rails. I'm wrapping up a new version today including it.

ccocchi commented 11 years ago

Version 0.3.0 is out ! :heart: