grape-rabl
grape-rabl copied to clipboard
Dynamically configure template path
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.
Hey! What's the status of this?
Nobody is working on it, please feel free to submit a PR.
Alright! You have it then. I'll probably propose something here first after looking at the code.
But ,this will break our existing app.I just want to use it on specified api.version.