Skip to content

Commit

Permalink
encodingはstateで良い
Browse files Browse the repository at this point in the history
これでrenderとかrender_stringとか$classで使えるようになるのでそこそこ捗る気がする。
  • Loading branch information
hisaichi5518 committed Sep 11, 2012
1 parent 852a1f7 commit 5326248
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Malts.pm
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ sub config {}
sub html_content_type { 'text/html; charset=UTF-8' }

sub encoding {
my ($self) = @_;
$self->{encoding} ||= Malts::Util::find_encoding('utf-8');
state $enc = Malts::Util::find_encoding('utf-8');
}

sub create_headers {
Expand Down

0 comments on commit 5326248

Please sign in to comment.