Added plain text (gemtext like) templates

This commit is contained in:
Slatian
2023-02-25 15:42:59 +01:00
parent aa384c9eff
commit 896564791e
11 changed files with 265 additions and 24 deletions

25
templates/base.txt Normal file
View File

@ -0,0 +1,25 @@
{%- block content %}
Greetings from the base template!
{% endblock -%}
{%- block json_notice %}
You can get the json version:
=> {{ extra.base_url }}/{% block path %}{% endblock %}?format=json
{% endblock -%}
{%- if view == "404" %}
## Usage
You can query this service using the folowing endpoints …
=> {{ extra.base_url }}/ip/<address> … to query for an ip-address
=> {{ extra.base_url }}/dig/<name> … to query for a domain-name
=> {{ extra.base_url }}/ua … to get your user agent
## About
You can find the echoip-slatecave sourcecode on Codeberg.
=> https://codeberg.org/slatian/service.echoip-slatecave
If you found a bug or have an idea, feature, etc. please get in touch (I also accept E-Mails!).
This service works in its current form because nobody is abusing it, please keep that in mind. If you want to do frequent automated requests please host your own instace. Thank you for being awesome!
{% endif %}