UNPKG

code-example

Version:
9 lines (8 loc) 797 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var code = "<!doctype html>\n<html>\n <head>\n <title>My Django web application</title>\n </head>\n <body>\n <h1>\n {{ page.title|capfirst }}\n </h1>\n <ul class=\"my-list\">\n {# traverse a list of items and produce links to their views. #}\n {% for item in items %}\n <li>\n <a href=\"{% url 'item_view' item.name|slugify %}\">\n {{ item.name }}\n </a>\n </li>\n {% empty %}\n <li>You have no items in your list.</li>\n {% endfor %}\n </ul>\n {% comment \"this is a forgotten footer\" %}\n <footer></footer>\n {% endcomment %}\n </body>\n</html>\n"; var _default = code; exports.default = _default;