$ erubis -c '{var: "AAA\n"}' tailnewline.rhtml
AAA