notif = (title, html) -> html = html.replace /#{title}#{html}
""" textNotif = (title, message) -> notif title, """

#{message}""" app.templates.notifUpdateReady = -> textNotif """ DevDocs has been updated. """, """ Reload the page to use the new version. """ app.templates.notifError = -> textNotif """ Oops, an error occured. """, """ Try reloading, and if the problem persists, resetting the app.
I track these errors automatically but feel free to contact me. """ app.templates.notifInvalidLocation = -> textNotif """ DevDocs must be loaded from #{app.config.production_host} """, """ Otherwise things are likely to break. """ app.templates.notifNews = (news) -> notif 'Changelog', app.templates.newsList(news)