ob-css.el 1.45 KB
Newer Older
Rasmus's avatar
Rasmus committed
1
;;; ob-css.el --- Babel Functions for CSS            -*- lexical-binding: t; -*-
2

Paul Eggert's avatar
Paul Eggert committed
3
;; Copyright (C) 2009-2020 Free Software Foundation, Inc.
4 5 6

;; Author: Eric Schulte
;; Keywords: literate programming, reproducible research
Rasmus's avatar
Rasmus committed
7
;; Homepage: https://orgmode.org
8 9 10 11 12 13 14 15 16 17 18 19 20 21

;; This file is part of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
22
;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
23 24 25 26

;;; Commentary:

;; Since CSS can't be executed, this file exists solely for tangling
Rasmus's avatar
Rasmus committed
27
;; CSS from Org files.
28 29 30 31 32 33

;;; Code:
(require 'ob)

(defvar org-babel-default-header-args:css '())

Rasmus's avatar
Rasmus committed
34
(defun org-babel-execute:css (body _params)
35 36
  "Execute a block of CSS code.
This function is called by `org-babel-execute-src-block'."
37
  body)
38

Rasmus's avatar
Rasmus committed
39
(defun org-babel-prep-session:css (_session _params)
40 41 42 43 44 45
  "Return an error if the :session header argument is set.
CSS does not support sessions."
  (error "CSS sessions are nonsensical"))

(provide 'ob-css)

46

47 48

;;; ob-css.el ends here