json_builder icon indicating copy to clipboard operation
json_builder copied to clipboard

Add support to render templates directly

Open justinperkins opened this issue 11 years ago • 0 comments

I realize this is a bit of an edge case, but it'd be really great to be able to render templates outside the normal Rails usage – such as to be able to render a template inline from the controller, but with all the normal instance variables and view helpers available to you just like you'd have if Rails was rendering the template in the view layer.

I am trying to replace some existing Rabl rendering with json_builder, but this is the one thing Rabl does well that json_builder currently does not. See their docs under "Rendering templates directly" for more information.

justinperkins avatar Apr 04 '13 14:04 justinperkins