1234567891011121314151617181920212223242526272829303132 |
- <html>
- <head>
- <title>{% if gist %}{{ gist.title }}{% else %}404 - Not Found{% endif %}</title>
- <style>
- pre {
- counter-reset: line;
- }
- code {
- counter-increment: line;
- }
- code:before {
- content: counter(line);
- margin-right: 10px;
- }
- </style>
- </head>
- <body>
- {% if gist %}
- <h3>{{ gist.title }}</h3>
- <div>
- {% set lines = gist.body | split(pat = '
- ') %}
- <pre>
- {%- for line in lines %}<code id="{{ loop.index }}">{{ line }}</code>
- {% endfor %}
- </pre>
- </div>
- {% else %}
- <h3>Gist not found</h3>
- {% endif %}
- </body>
- </html>
|