Top "Render-to-string" questions

Laravel Error: Method Illuminate\View\View::__toString() must not throw an exception

Have you seen this lovely error while working in Laravel? Method Illuminate\View\View::__toString() must not throw an exception …

php laravel runtime-error tostring render-to-string
How to pass variables to render_to_string?

Trying to do the following @message = render_to_string ( :sender => sender, :template => "template" ) But when accessing @sender in …

ruby-on-rails render render-to-string
React renderToString() Performance and Caching React Components

I've noticed that the reactDOM.renderToString() method starts to slow down significantly when rendering a large component tree on the …

performance reactjs isomorphic-javascript render-to-string react-dom
How to simplify "render_to_string" in Rails 3?

To render a partial in Rails 3 I do: render 'my_partial', :my_object => my_value To get partial's result …

ruby-on-rails ruby-on-rails-3 render render-to-string
Rails render_to_string

I am having difficulty with the rails render_to_string function. I have created an app using the --api flag, …

ruby-on-rails render-to-string
var_export to string

I have an HTML code in the $output string, this code is delimited by two terms: -startMiniPreview- and -endMiniPreview-. I …

php string render-to-string
render_to_string does not find partials (PDFKit controller response)

Ruby 1.8.7, Rails 3.0.4, PDFKit 0.5.0 I'm trying to create a PDF with PDFKit without using the middleware so I can disable javascript (…

ruby-on-rails pdfkit render-to-string