             output.textStorage?.append(countryStart)
             return
         }
+        
+        for whsSite in whsSites {
+            let whsLine = NSAttributedString(string: """
+                <a href="http://whc.unesco.org/en/list/\(whsSite.id_no)">\(whsSite.name_en)</a> (\(whsSite.date_inscribed))<br />\n
+                """)
+            output.textStorage?.append(whsLine)
+        }
     }
 
     func writeFooter(for type: Document) {
-        let total = whs + twhs
+        let total = sites.count + twhs
+
+        #if TODO_IMPLEMENT_VISITED
         let visited = whsVisited + twhsVisited
         let percent = total > 0 ? Double(visited / total) : 100
         let textFooter = NSAttributedString(string: """
             
-            <p dir="ltr">WHS visited: \(whsVisited)/\(whs) — TWHS visited: \(twhsVisited)/\(whs) — TOTAL: \(visited)/\(total) (\(percent)%)</p>\n
+            <p dir="ltr">WHS visited: \(whsVisited)/\(sites.count) — TWHS visited: \(twhsVisited)/\(twhs) — TOTAL: \(visited)/\(total) (\(percent)%)</p>\n
             """)
+        #else
+        let textFooter = NSAttributedString(string: """
+            
+            <p dir="ltr">WHS: \(sites.count) — TWHS: \(twhs) — TOTAL: \(total)</p>\n
+            """)
+        #endif
         output.textStorage?.append(textFooter)
 
         if type == .html {

        let array = Array(dict.values).sorted { (lhs, rhs) in
            lhs.name < rhs.name
        }
        return array
    }()
    

import Cocoa

class ViewController: NSViewController {

    enum Visited: String {
        case yes = "✅"
        case no = "🔲"
    }

    enum Document {
        case html
