nikolalsvk / render_async

render_async lets you include pages asynchronously with AJAX
https://rubygems.org/gems/render_async/
MIT License
1.08k stars 75 forks source link

Allow a custom content_for name #117

Closed vanboom closed 4 years ago

vanboom commented 4 years ago

Added an option to control the name used in the content_for call.
The name defaults to :render_async. A custom name may be used to better control the placement of injected Javascript especially when rendering nested async views.

nikolalsvk commented 4 years ago

Thanks for this PR, @vanboom! BTW, is it still work in progress or we can review it?

vanboom commented 4 years ago

It is ready to go - and working great in my application.

nikolalsvk commented 4 years ago

Thanks, @vanboom, I'll review it and we can include it in the next version 🍰