Templating is weird af in Rocket. Look into 3a541ae for more.
The content-type of the rendering is determined by the extension of the
template name.
But renaming these templates would break building the project for
development because it finds a phony template there. So the trick is to
default the `template_dir` to `args.upload` because it should never
interfere and will be always present.
This also fixes the hax in Dockerfile by making it the default.
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
34 lines
649 B
Plaintext
34 lines
649 B
Plaintext
{% extends "base.html" %}
|
|
|
|
{% block styles %}
|
|
<style>
|
|
body {
|
|
padding: 10px;
|
|
}
|
|
|
|
pre {
|
|
margin: 0px;
|
|
font-family: 'Iosevka Web', monospace;
|
|
}
|
|
</style>
|
|
<link rel="stylesheet" href="/static/css/pretty.css">
|
|
{% endblock styles %}
|
|
|
|
|
|
{% block head %}
|
|
{% endblock head %}
|
|
|
|
|
|
{% block body %}
|
|
<div class="rootBox">
|
|
<div id="pasteContent">
|
|
{{ body | safe }}
|
|
</div>
|
|
<div class="topRightBox">
|
|
<button onclick="forkClicked()">⑂ Fork</button>
|
|
<button onclick="newPasteClicked()">+ New</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/static/js/pretty.js"></script>
|
|
{% endblock body %} |