The Phabricator plugin code would be much more readable if the existing classes (Phabricator, PhabricatorReplyPrinter, PhabricatorStoryPrinter, ConduitAPI, PhabricatorStringFormatting, PhabricatorReplyStringConstructor, PhabricatorStoryStringConstructor) were saved in individual files.
Last time I checked, import didn't work with the plugin architecture, but maybe exec(open("./filename").read()) does.
The Phabricator plugin code would be much more readable if the existing classes (Phabricator, PhabricatorReplyPrinter, PhabricatorStoryPrinter, ConduitAPI, PhabricatorStringFormatting, PhabricatorReplyStringConstructor, PhabricatorStoryStringConstructor) were saved in individual files.
Last time I checked, import didn't work with the plugin architecture, but maybe
exec(open("./filename").read())
does.