app.templates.path = (doc, type, entry) -> html = """#{doc.name}""" html += """#{type.name}""" if type html += """#{entry.name}""" if entry html