added support for replaceable documents

added some document functions

(0) +2 +10 +30 +100 +300 tip

mercurial