A new and environmentally benign precursor for the synthesis of mesoporous g-C3N4 with tunable surface area.