A new route for the preparation of mesoporous carbon materials with high performance in lithium-sulphur battery cathodes.