mojolicious / mojo

:sparkles: Mojolicious - Perl real-time web framework
https://mojolicious.org
Artistic License 2.0
2.66k stars 576 forks source link

Allow selection of an encoding on slurp/spew in Mojo::File #2089

Closed genio closed 10 months ago

genio commented 11 months ago

Summary

Alter Mojo::File to:

Motivation

As we discussed on IRC, allowing these options not only makes it easier for users as well as bring things more inline with what is allowed in the Mojo.js framework.

genio commented 11 months ago

@Grinnz Correct. Since spurt can take an array of content, we can't easily check the last argument. Discussion was that spurt would likely be done away with in time

karenetheridge commented 9 months ago

This is great; thank you!