Convert templates to foundation