First implementation of web based editor to HTML pipeline
This commit is contained in:
		
							
								
								
									
										6
									
								
								web/templates/editor.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								web/templates/editor.html
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										21
									
								
								web/templates/index.html
									
									
									
									
									
										Normal 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>
 | 
			
		||||
		Reference in New Issue
	
	Block a user