I've added a few more UI tweaks to the WebApp.jl
file to spice things up a bit. Here are the important parts—please download the full file from https://github.com/PacktPublishing/Julia-Programming-Projects/blob/master/Chapter05/sixdegrees/WebApp.jl:
module WebApp # code truncated # function history(game) html = """<ol class="list-group">""" iter = 0 for a in game.history html *= """ <li class="list-group-item"> <a href="/$(game.id)/back/$(iter + 1)">$(a.title)</a> </li> """ iter += 1 end html * "</ol>" end function objective(game) """ <div class="jumbotron"> <h3>Go from <span class="badge badge-info">$(game.articles[1].title)</span> to <span class="badge badge-info">$(game.articles[end].title)</span> </h3> <hr/> <h5> Progress: <span class="badge badge-dark">...