added template generation in new_post rake task