Function: majutsu-template-raw

majutsu-template-raw is a natively compiled function defined in majutsu-template.el.

Signature

(majutsu-template-raw VALUE &optional TYPE)

Documentation

Raw snippet injected verbatim. Use sparingly.

VALUE may be a string or template node. TYPE is an optional semantic annotation; otherwise the raw snippet remains Unknown.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-template.el
(defun majutsu-template-raw (value &optional type)
  "Raw snippet injected verbatim. Use sparingly.
VALUE may be a string or template node. TYPE is an optional semantic
annotation; otherwise the raw snippet remains `Unknown'."
  (let* ((string (if (majutsu-template-node-p value)
                     (majutsu-template--literal-string-from-node value)
                   (format "%s" value)))
         (declared (when type (majutsu-template--node->type-symbol type)))
         (props (when declared (list :declared declared))))
    (majutsu-template--raw-node string declared props)))