added next_line function to ftemplate