Index: crystalize.rkt
==================================================================
--- crystalize.rkt
+++ crystalize.rkt
@@ -35,11 +35,11 @@
pollen/core
pollen/template
racket/string
txexpr
"sqlite-tools.rkt"
- "template-html.rkt"
+ "snippets-html.rkt"
"dust.rkt")
;; ~~~ Provides ~~~
(provide spell-of-summoning!
Index: pollen.rkt
==================================================================
--- pollen.rkt
+++ pollen.rkt
@@ -30,23 +30,23 @@
(require pollen/tag
pollen/setup
racket/function
"tags-html.rkt"
- "template-html.rkt"
+ "snippets-html.rkt"
"crystalize.rkt")
(provide (all-defined-out)
- (all-from-out "crystalize.rkt" "template-html.rkt"))
+ (all-from-out "crystalize.rkt" "snippets-html.rkt"))
(module setup racket/base
(require syntax/modresolve)
(provide (all-defined-out))
(define poly-targets '(html))
(define cache-watchlist
(map resolve-module-path '("tags-html.rkt"
- "template-html.rkt"
+ "snippets-html.rkt"
"dust.rkt"
"crystalize.rkt"))))
;; Macro for defining tag functions that automatically branch based on the
;; current output format and the list of poly-targets in the setup module.
ADDED snippets-html.rkt
Index: snippets-html.rkt
==================================================================
--- snippets-html.rkt
+++ snippets-html.rkt
@@ -0,0 +1,161 @@
+#lang pollen/mode racket/base
+
+;; Copyright (c) 2018 Joel Dueck.
+;;
+;; Licensed under the Apache License, Version 2.0 (the "License");
+;; you may not use this file except in compliance with the License.
+;; A copy of the License is included with this source code, in the
+;; file "LICENSE.txt".
+;; You may also obtain a copy of the License at
+;;
+;; http://www.apache.org/licenses/LICENSE-2.0
+;;
+;; Unless required by applicable law or agreed to in writing, software
+;; distributed under the License is distributed on an "AS IS" BASIS,
+;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+;; See the License for the specific language governing permissions and
+;; limitations under the License.
+;;
+;; Author contact information:
+;; joel@jdueck.net
+;; https://joeldueck.com
+;; -------------------------------------------------------------------------
+
+;; Provides functions for displaying content in HTML templates.
+(require pollen/core
+ pollen/template
+ racket/string
+ txexpr
+ openssl/sha1
+ "dust.rkt")
+
+(provide html$-page-head
+ html$-page-body-open
+ html$-article-open
+ html$-article-close
+ html$-page-body-close
+ html$-note-title
+ html$-note-contents
+ html$-note-listing-full
+ html$-note-in-article
+ html$-notes-section)
+
+(define (html$-page-head [title #f])
+ ◊string-append{
})
DELETED template-html.rkt
Index: template-html.rkt
==================================================================
--- template-html.rkt
+++ template-html.rkt
@@ -1,161 +0,0 @@
-#lang pollen/mode racket/base
-
-;; Copyright (c) 2018 Joel Dueck.
-;;
-;; Licensed under the Apache License, Version 2.0 (the "License");
-;; you may not use this file except in compliance with the License.
-;; A copy of the License is included with this source code, in the
-;; file "LICENSE.txt".
-;; You may also obtain a copy of the License at
-;;
-;; http://www.apache.org/licenses/LICENSE-2.0
-;;
-;; Unless required by applicable law or agreed to in writing, software
-;; distributed under the License is distributed on an "AS IS" BASIS,
-;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-;; See the License for the specific language governing permissions and
-;; limitations under the License.
-;;
-;; Author contact information:
-;; joel@jdueck.net
-;; https://joeldueck.com
-;; -------------------------------------------------------------------------
-
-;; Provides functions for displaying content in HTML templates.
-(require pollen/core
- pollen/template
- racket/string
- txexpr
- openssl/sha1
- "dust.rkt")
-
-(provide html$-page-head
- html$-page-body-open
- html$-article-open
- html$-article-close
- html$-page-body-close
- html$-note-title
- html$-note-contents
- html$-note-listing-full
- html$-note-in-article
- html$-notes-section)
-
-(define (html$-page-head [title #f])
- ◊string-append{
- ◊if[title title ""]
-
-
-
- })
-
-(define (html$-page-body-open)
- ◊string-append{
-
-
-
+
+