From 8a3113c43d3188836ed87a51def2ffbee2111d41 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Tue, 09 Mar 2021 13:33:07 +0000
Subject: [PATCH] cache templates
---
layouts/_default/baseof.html | 6 +++---
exampleSite/go.mod | 2 +-
layouts/partials/pager.html | 2 +-
exampleSite/go.sum | 2 ++
4 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/exampleSite/go.mod b/exampleSite/go.mod
index 6a0d9d9..8f64826 100644
--- a/exampleSite/go.mod
+++ b/exampleSite/go.mod
@@ -2,4 +2,4 @@
go 1.15
-require github.com/onweru/compose v0.0.0-20210226153626-1b67f9ccc7f8 // indirect
+require github.com/onweru/compose v0.0.0-20210301150901-5c5213307e62 // indirect
diff --git a/exampleSite/go.sum b/exampleSite/go.sum
index b4044df..acd7a18 100644
--- a/exampleSite/go.sum
+++ b/exampleSite/go.sum
@@ -146,3 +146,5 @@
github.com/onweru/compose v0.0.0-20210224223901-8dbb193ddbe3/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc=
github.com/onweru/compose v0.0.0-20210226153626-1b67f9ccc7f8 h1:g7NXBSkGk/WR160Nxqc2YdtDLJiGdhIqlGhPlOtvi2c=
github.com/onweru/compose v0.0.0-20210226153626-1b67f9ccc7f8/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc=
+github.com/onweru/compose v0.0.0-20210301150901-5c5213307e62 h1:pZ3rYbYQjY/YArAvbdiHTgp+hzRDinMczy0tCwuAN9Y=
+github.com/onweru/compose v0.0.0-20210301150901-5c5213307e62/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc=
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 38e8e81..cc9ec4f 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -28,8 +28,8 @@
{{- block "main" . }}{{ end }}
{{- end }}
</div>
- {{- partial "footer" . }}
- {{- partial "sprites" . }}
- {{- partial "scripts" . }}
+ {{- partialCached "footer" . }}
+ {{- partialCached "sprites" . }}
+ {{- partialCached "scripts" . }}
</body>
</html>
diff --git a/layouts/partials/pager.html b/layouts/partials/pager.html
index 671be69..4bee054 100644
--- a/layouts/partials/pager.html
+++ b/layouts/partials/pager.html
@@ -17,4 +17,4 @@
</div>
{{ end }}
</div>
-{{ partial "sprites" . }}
\ No newline at end of file
+{{ partialCached "sprites" . }}
\ No newline at end of file
--
Gitblit v1.10.0