Mesoporous N-doped graphene prepared by a soft-template method with high performance in Li-S batteries.