aboutsummaryrefslogtreecommitdiff
path: root/src/forms.rs
AgeCommit message (Collapse)Author
2023-06-10remove .shares.txt featureMartin Fischer
2023-06-10refactor: some linter fixesMartin Fischer
2021-07-18refactor: use camino for UTF-8 pathsMartin Fischer
2021-07-05disable textarea spellcheck for ext not in (md, txt)Martin Fischer
2021-07-05refactor: stop wrapping Page.header in OptionMartin Fischer
2021-06-24generate <script> tags and CSP from Page vectorsMartin Fischer
2021-06-24refactor: simplify Page and Context structsMartin Fischer
Previously the Page struct contained references to the Controller and the http::request::Parts, so that page.render() could call controller.user_info_html(parts). This commit removes these references from the Page struct, so that it can implement Default in the future. The Context struct needs to be moved around since it contains git2::Repository, which isn't Send. Previously the Context struct also contained the http::request::Parts, so they were moved along. This commit extracts Parts out of the Context struct, so that our service function can access Parts after invoking our build_request method, allowing us to easily log request details for errors in the future.
2021-06-23refactor: split up main.rs into multiple modulesMartin Fischer