How simultaneously to render a page and transmit my custom data to browser. As i understood it needs to send two layers: first with template and second with JSON data. I wan
Check out Steamer, a tiny module made for this this exact purpose.
https://github.com/rotundasoftware/steamer