summaryrefslogtreecommitdiff
path: root/sw/templates/user_info.html
AgeCommit message (Collapse)AuthorLines
2021-08-02Utilise jinja inheritance to streamline in/outboxuntestedTom Harley-1/+2
Using jinja's templating extensions, we can recreate the activitypub inheritance hierarchy without using clunky python OO. Extending from multiple template files in sequence might cause unnecesary IO to slow response times; if this ever becomes an issue, it should be possible to pre-process some of the templating since a lot of it will be based on constant expressions (such as @context and type). I think some formatting fixes leaked into this commit; oops! I'm leaving this note here in the hopes that if I ever want to clean this up, I can locate this commit easier.
2021-07-30Add templatesTom Harley-0/+13
Rather than using jsonify on a dict, the system now uses render_template on json documents. This gives the ability to extend previous files (which might be useful for activitypub features), and also enables using different templates for different filetypes. Supplied are templates for accessing inboxes and outboxes in JSON-LD and HTML. The "items" field in get_user_inbox_page.json and get_user_outbox_page.json might be currently borked.