Function: org-babel-expand-body:dot
org-babel-expand-body:dot is a byte-compiled function defined in
ob-dot.el.gz.
Signature
(org-babel-expand-body:dot BODY PARAMS)
Documentation
Expand BODY according to PARAMS, return the expanded body.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-dot.el.gz
(defun org-babel-expand-body:dot (body params)
"Expand BODY according to PARAMS, return the expanded body."
(let ((vars (org-babel--get-vars params))
(prologue (cdr (assq :prologue params)))
(epilogue (cdr (assq :epilogue params))))
(mapc
(lambda (pair)
(let ((name (symbol-name (car pair)))
(value (cdr pair)))
(setq body
(replace-regexp-in-string
(concat "$" (regexp-quote name))
(if (stringp value) value (format "%S" value))
body
t
t))))
vars)
(concat
(and prologue (concat prologue "\n"))
body
(and epilogue (concat "\n" epilogue "\n")))))