ccocchi / rabl-rails

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

Add a `condition` block example to README #98

Open javierjulio opened 1 year ago

javierjulio commented 1 year ago

This is something we noticed that is a public and documented method that proved to be really helpful but is not included in the examples in the README file. We needed to conditionally extend a partial for one case, and then another condition (the inverse of the previous) to extend a different partial. I just used the example already listed in source.