Added a templating helper

This commit is contained in:
Slatian
2023-02-12 17:35:32 +01:00
parent b21aa5192f
commit febcb8b02e
4 changed files with 237 additions and 128 deletions

View File

@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Your IP: {{ ip }}</title>
<title>Your IP: {{ data.query.ip }}</title>
</head>
<body>
<h1>Your IP-Address is: {{ ip }}</h1>
<h1>Your IP-Address is: {{ data.query.ip }}</h1>
<p>Your requested format was: <b>{{format}}</b></p>
{% if hostname %}
<p>Hostname: <b>{{hostname}}</b></p>
<p>Hostname: <b>{{data.result.hostname}}</b></p>
{% endif %}
</body>
</html>