$query_page)) ? $pages->$query_page : $pages->{404};
//If the query value ($query_page) is not in the dictionary ($pages), then load the 404 page instead.
echo "".$query_page."";
//Store the page id in a var tag in case we need to access it with JavaScript.
$list = (isset($_REQUEST['list']) && !empty($_REQUEST['list'])) ? $_GET['list'] : "master";
//Get the value of "list" from the query key; default is "master" (the master list).
echo "".$list."";
//Store the list id in a var tag so that we can easily figure out what list to generate with list.js.
if($query_page=="lists"){
$lists_json = json_decode(file_get_contents(__DIR__ ."/../data/lists.json"));
echo "";
//Copy the data from lists.json and paste it into a script tag, saving it as a variable called `list` to be accessed by later JavaScript code (i.e. lists.js).
//I would have stored it in a var tag, but there was a weird bug with some of the tags leaking out and making my title underlined, and this seemed to avoid that (and it's probably more efficient too).
}
?>