<feed xmlns='http://www.w3.org/2005/Atom'>
<title>swap/sw/templates/base.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>
<entry>
<title>Add templates</title>
<updated>2021-07-30T18:35:08+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-30T18:35:08+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=c77d6a4d4a1d628788be73491aa7fa4e4fdcff05'/>
<id>c77d6a4d4a1d628788be73491aa7fa4e4fdcff05</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
</feed>
