Commit | Line | Data |
---|---|---|
86fbb8ca CD |
1 | ;;; ob-css.el --- org-babel functions for css evaluation |
2 | ||
ab422c4d | 3 | ;; Copyright (C) 2009-2013 Free Software Foundation, Inc. |
86fbb8ca CD |
4 | |
5 | ;; Author: Eric Schulte | |
6 | ;; Keywords: literate programming, reproducible research | |
7 | ;; Homepage: http://orgmode.org | |
86fbb8ca CD |
8 | |
9 | ;; This file is part of GNU Emacs. | |
10 | ||
11 | ;; GNU Emacs is free software: you can redistribute it and/or modify | |
12 | ;; it under the terms of the GNU General Public License as published by | |
13 | ;; the Free Software Foundation, either version 3 of the License, or | |
14 | ;; (at your option) any later version. | |
15 | ||
16 | ;; GNU Emacs is distributed in the hope that it will be useful, | |
17 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 | ;; GNU General Public License for more details. | |
20 | ||
21 | ;; You should have received a copy of the GNU General Public License | |
22 | ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | |
23 | ||
24 | ;;; Commentary: | |
25 | ||
26 | ;; Since CSS can't be executed, this file exists solely for tangling | |
27 | ;; CSS from org-mode files. | |
28 | ||
29 | ;;; Code: | |
30 | (require 'ob) | |
31 | ||
32 | (defvar org-babel-default-header-args:css '()) | |
33 | ||
86fbb8ca CD |
34 | (defun org-babel-execute:css (body params) |
35 | "Execute a block of CSS code. | |
36 | This function is called by `org-babel-execute-src-block'." | |
8223b1d2 | 37 | body) |
86fbb8ca CD |
38 | |
39 | (defun org-babel-prep-session:css (session params) | |
40 | "Return an error if the :session header argument is set. | |
41 | CSS does not support sessions." | |
42 | (error "CSS sessions are nonsensical")) | |
43 | ||
44 | (provide 'ob-css) | |
45 | ||
5b409b39 | 46 | |
86fbb8ca CD |
47 | |
48 | ;;; ob-css.el ends here |