Oh, thx. It's always good to have more than one solution.
Let me ask an additional question. The HTML to include is large, typically ~100 KB, and can be prepared down to the necessary fragment in batch. Batch manipulation is still necessary for other reasons. This does not save much of the size, but safes parsing and stringification in the online app. What would be expected to be the fastest method to include it in an template? It lives as a file, and I have a path as string. TIA Helmut Wollmersdorfer Am Montag, 30. November 2015 10:39:49 UTC+1 schrieb Jan Henning Thorsen: > > You can also turn the string into a ByteStream object: > > # this... > use Mojo::ByteStream "b"; > my $x = b "hello!"; > $c->stash(x => $x); > > # or this... > $c->stash(x => $c->b("Hello!")); > > > > https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Plugin/DefaultHelpers.pm#b > > > On Monday, November 23, 2015 at 9:45:32 AM UTC+1, Helmut Wollmersdorfer > wrote: >> >> >> >> Am Montag, 23. November 2015 09:22:04 UTC+1 schrieb Luc didry: >>> >>> >>> Simple: just use <%== instead of <%= (which XML escape the result). >>> >> >> OMG, forgot this feature. >> >> Thx >> >> Helmut Wollmersdorfer >> > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To post to this group, send email to mojolicious@googlegroups.com. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.