add template::insertMessage to template interface;

add nl format to template complier which equal to nl2br() and echo.