app.templates.offlinePage = -> """

Offline

#{app.templates.render 'offlineDoc', app.docs.all()}
""" app.templates.offlineDoc = (doc) -> """""" app.templates.offlineDocContent = (doc, status) -> html = """#{doc.name}""" html += if status.downloaded """Delete""" else """Download""" html