I don't think this belongs here. Can it be moved to a templates directory?