First implementation of web based editor to HTML pipeline

This commit is contained in:
2024-02-18 10:07:49 +01:00
parent ff657fd508
commit ad9bfb2439
9 changed files with 89 additions and 2 deletions

View File

@ -0,0 +1,6 @@
{{define "page-content"}}
<form>
<textarea name="editor-textarea"></textarea>
<input type="submit" value="Senden" hx-post="/finished-edit/">
</form>
{{end}}

21
web/templates/index.html Normal file
View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Orient Editor</title>
<link href="web/static/css/style.css" rel="stylesheet">
</head>
<body>
<h1>Orient Editor</h1>
<div id="page-content">
{{template "page-content" .}}
</div>
<script src="web/static/js/htmx.min.js"></script>
</body>
</html>