fgdfg
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>TABLE</title>
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; margin: 40px; }
|
||||
.header { background: #3498db; color: white; padding: 20px; border-radius: 8px; }
|
||||
.content { margin: 20px 0; }
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th, td { padding: 10px; border: 1px solid #ddd; text-align: left; }
|
||||
th { background: #f4f4f4; }
|
||||
.price { text-align: right; font-weight: bold; color: #27ae60; }
|
||||
.total { background: #ecf0f1; font-weight: bold; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="content">
|
||||
<h2>Items</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Item Name</th>
|
||||
<th>Price</th>
|
||||
</tr>
|
||||
{{range $key, $value := .Items}}
|
||||
<tr>
|
||||
<td>{{$key}}</td>
|
||||
<td class="price">{{$value.String}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user