TransWikia.com

Is there a function where you can convert a template into a string of HTML? (Laravel Blade)

Stack Overflow Asked by user12297722 on January 19, 2021

Is there a function where you can convert a template into a string of HTML, then store it to string in controller?

for Rails, like "render_to_string" on a template with dynamic vars.

One Answer

$rendered = view(...)->render();

Views have a render method.

Correct answer by lagbox on January 19, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP