From db068fcecbd11829b87a2cf8836fd94969b812b9 Mon Sep 17 00:00:00 2001 From: Matthew Stobbs Date: Thu, 14 Mar 2024 14:39:26 -0600 Subject: [PATCH] start migration to templ --- go.mod | 1 + go.sum | 2 ++ tailwind.config.js | 2 +- view/components/infobox.templ | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 view/components/infobox.templ diff --git a/go.mod b/go.mod index 0513d77..2558733 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.22.1 require libvirt.org/go/libvirt v1.10001.0 require ( + github.com/a-h/templ v0.2.598 // indirect github.com/go-chi/chi/v5 v5.0.12 // indirect gopkg.in/ffmt.v1 v1.5.6 // indirect ) diff --git a/go.sum b/go.sum index eae4159..3ccd114 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/a-h/templ v0.2.598 h1:6jMIHv6wQZvdPxTuv87erW4RqN/FPU0wk7ZHN5wVuuo= +github.com/a-h/templ v0.2.598/go.mod h1:SA7mtYwVEajbIXFRh3vKdYm/4FYyLQAtPH1+KxzGPA8= github.com/go-chi/chi/v5 v5.0.12 h1:9euLV5sTrTNTRUU9POmDUvfxyj6LAABLUcEWO+JJb4s= github.com/go-chi/chi/v5 v5.0.12/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= gopkg.in/ffmt.v1 v1.5.6 h1:4Bu3riZp5sAIXW2T/18JM9BkwJLodurXFR0f7PXp+cw= diff --git a/tailwind.config.js b/tailwind.config.js index 63a67d5..cd21aa0 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,6 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: ["view/**/*.templ"], + content: ["**/*.templ", "**/*.go"], theme: { extend: { listStyleImage: { diff --git a/view/components/infobox.templ b/view/components/infobox.templ new file mode 100644 index 0000000..bc820f5 --- /dev/null +++ b/view/components/infobox.templ @@ -0,0 +1 @@ +package components