It is fine to modify the HTML directly while you are developing locally.  However, for commits you should not modify the html directly.  Instead, you should modify the .subtemplate.  Then, you need to rebuild the html documents by running the build.py script in the root of the privly-applications repo.