From 4264ff0bf67243d9ed528f435b2da35a8bb9f551 Mon Sep 17 00:00:00 2001 From: mikgor Date: Sat, 27 Oct 2018 17:30:25 +0200 Subject: [PATCH] Template paths set to static --- templates/base.html | 10 +++------- templates/cart.html | 4 ++-- templates/category.html | 2 +- templates/checkout.html | 2 +- templates/index.html | 2 +- templates/product.html | 2 +- 6 files changed, 9 insertions(+), 13 deletions(-) diff --git a/templates/base.html b/templates/base.html index fa507ce..a565f8e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -10,13 +10,9 @@
-
- - - +
+ +
{{template "content" .}}
diff --git a/templates/cart.html b/templates/cart.html index e2b0771..cb553d3 100644 --- a/templates/cart.html +++ b/templates/cart.html @@ -1,7 +1,7 @@ {{define "content"}}

Koszyk

@@ -15,7 +15,7 @@ function deleteitem(id) { {{range $.cart.Products}}
{{ .Product.Price }} zł
diff --git a/templates/category.html b/templates/category.html index 7e18a50..0ae3c82 100644 --- a/templates/category.html +++ b/templates/category.html @@ -1,7 +1,7 @@ {{define "content"}}

{{.category.Name}}

{{range $.products}} - +