json.array!(@templates) do |template| json.extract! template, :id, :title, :author json.url template_url(template, format: :json) end