The backend of a gist server written in Rust
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

show.tera 787B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <html>
  2. <head>
  3. <title>{{ title }}</title>
  4. <style>
  5. .container {
  6. margin: auto;
  7. max-width: 800px;
  8. }
  9. .header__raw-link {
  10. font-size: 16px;
  11. font-weight: normal;
  12. }
  13. .body > pre {
  14. font-size: 16px;
  15. padding: 15px;
  16. }
  17. .body > pre.plaintext {
  18. padding: 0;
  19. }
  20. </style>
  21. <meta name="viewport" content="width=device-width">
  22. </head>
  23. <body>
  24. <div class="container">
  25. <h1 class="header">
  26. {{ title }}
  27. {% if id %}
  28. <a class="header__raw-link" href="/snippets/{{ id }}/raw">raw</a>
  29. {% endif %}
  30. </h1>
  31. {% if body %}
  32. <div class="body">
  33. {{ body | safe }}
  34. </div>
  35. {% endif %}
  36. </div>
  37. </body>
  38. </html>