plexus / yaks

Ruby library for building hypermedia APIs
http://rubygems.org/gems/yaks
MIT License
236 stars 26 forks source link

add support for CJ template #38

Closed carlesjove closed 9 years ago

carlesjove commented 9 years ago

Adds support for CJ template by making the CJ formatter configurable:

collection_json = Yaks.new do
  format_options :collection_json, template: :my_template_form
end

Will use the form with name :my_template_form for a template, if found.

100% mutant test coverage.

PS. This PR kills this other one.

plexus commented 9 years ago

omgyay