misaki.compiler.default.evaluator documentation

S-exp Template Evaluator.
Template string is evaluated as Function.

*eval-functions*

Definition of evaluating functions.

def?

(def? x)
Check whether `def` or `defn` s-exp or not.

enclose-sexp-with-function

(enclose-sexp-with-function sexp)
Enclose read s-exp with common function like below.

(fn [contents]
  (let [site (meta contents)]
    bodies))

enclose-sexp-with-list

(enclose-sexp-with-list ls)
Enclose s-exp with list.

evaluate-to-function

(evaluate-to-function sexp-str)(evaluate-to-function sexp-str filename)
Evaluate template's sexp string to template function.

split-into-def-and-body

Split s-exp into definition and template body using `def?`.