0

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.

1

1 Answer 1

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

Views have a render method.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.