Update library/Rain/Tpl.php

Just calculate once