Function: majutsu-template-compile
majutsu-template-compile is a natively compiled function defined in
majutsu-template.el.
Signature
(majutsu-template-compile FORM &optional SELF-TYPE)
Documentation
Public entry point: compile FORM into a jj template string.
Optional SELF-TYPE overrides majutsu-template-default-self-type for the root
implicit self context installed during this compilation.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-template.el
;;;###autoload
(defun majutsu-template-compile (form &optional self-type)
"Public entry point: compile FORM into a jj template string.
Optional SELF-TYPE overrides `majutsu-template-default-self-type' for the root
implicit self context installed during this compilation."
(let* ((effective-default (or self-type majutsu-template-default-self-type))
(majutsu-template-default-self-type
(and effective-default
(majutsu-template--normalize-type-symbol effective-default))))
(majutsu-template--call-with-root-self-binding
nil
(lambda ()
(majutsu-template--render-node (majutsu-template--rewrite form))))))