misaki.compiler.default.core documentation
Default HTML compiler for clojure source.
add-prev-next-post
(add-prev-next-post posts)
Add next post, previous post information to post list.
compile-tag
(compile-tag tag-name)
Compile a tag page.
return true if compile succeeded.
compile-template
(compile-template tmpl-file)
Compile a specified template, and write compiled data to `*public-dir*`.
return true if compile succeeded.
file->template-sexp
(file->template-sexp tmpl-file & {:keys [allow-layout?], :or {allow-layout? true}})
Convert java.io.File to Template s-exp which can be compiled by hiccup
generate-post-content
(generate-post-content post-file)
Generate post content without layout.
generate-tag-template-sexp
(generate-tag-template-sexp tag-name)
Generate tag template s-exp from tag name(String) with `*tag-layout*` layout.
get-compile-fn
(get-compile-fn format-str)
Get hiccup functon from format option.
get-post-info
(get-post-info post-file)
Get post template information from java.io.File.
Post content(`:lazy-content`) is delayed.
get-posts
(get-posts)
Get posts data from (:post-dir *config*) directory.
get-tagged-posts
(get-tagged-posts tag-seq)
Get tagged posts data from (:post-dir *config*) directory.
log
macro
(log label body)
(log label body force?)
Print compile result log with `:detailed-log` option.
make-site-data
(make-site-data tmpl-file & {:keys [base-option tags], :or {base-option {}, tags nil}})
Make site meta data from template java.io.File for HTML generator.
post-info-contains-tag?
(post-info-contains-tag? post-info tag-str)
Check whether post information contains tag or not.