ruby-grape / grape-rabl

Use rabl with grape
MIT License
136 stars 29 forks source link

Dynamically configure template path #25

Open dblock opened 10 years ago

dblock commented 10 years ago

I would like to be able to

Grape::Rabl.configure do |config|
  config.tilt_root = -> { "#{env['api.version']}/..." }
end

See https://github.com/LTe/grape-rabl/pull/24.

florrain commented 9 years ago

Hey! What's the status of this?

dblock commented 9 years ago

Nobody is working on it, please feel free to submit a PR.

florrain commented 9 years ago

Alright! You have it then. I'll probably propose something here first after looking at the code.

u2 commented 9 years ago

But ,this will break our existing app.I just want to use it on specified api.version.