From: Xavier Noria Date: 2012-04-24T22:55:56+09:00 Subject: Re: gem-packed script with DATA section does not work --047d7b15a61f103bb204be6d1d6a Content-Type: text/plain; charset=UTF-8 Exactly! Given that __END__ is not per file, I think that solution is a good compromise. It allows you to put this auxiliary stuff down the script, and at the same time have it available in the main code. One could invert the order and put the templates first, but I understand your desire to put them down. That is, if __END__ was per file, we'd use it for this case. --047d7b15a61f103bb204be6d1d6a Content-Type: text/html; charset=UTF-8
Exactly! Given that __END__ is not per file, I think that solution is a good compromise. It allows you to put this auxiliary stuff down the script, and at the same time have it available in the main code.

One could invert the order and put the templates first, but I understand your desire to put them down. That is, if __END__ was per file, we'd use it for this case.

--047d7b15a61f103bb204be6d1d6a--