Log in

HCMC Journal

Making the anthology builder portable

: Martin Holmes
Minutes: 85

It’s now clear that we will repurpose the anthology builder code for use on other sites, so I’ve been refactoring and adopting a more generic approach to configuring it. Each poem now has an individual table row in its own AJAX file named for its id, so that we don’t have to retrieve and parse other TOC files, and the thead is similarly a single tiny file. I’ve also started work on distinguishing between a page load when editing and a page load when not, so that we render from localStorage if we’re editing, but from the URL if not.