<feed xmlns='http://www.w3.org/2005/Atom'>
<title>swap/sw/templates/ap/ordered_collection_page.json, branch untested</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/'/>
<entry>
<title>Utilise jinja inheritance to streamline in/outbox</title>
<updated>2021-08-02T14:41:06+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-08-01T14:27:21+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=bafe42275e65b98951dd3335342e38d7bf1b1db5'/>
<id>bafe42275e65b98951dd3335342e38d7bf1b1db5</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
</feed>
