Haskell needs more work on the differences between interactive and non-interactive...
[org-mode.git] / lisp / langs / org-babel-css.el
blob93a369dc8472a5bb1db73a410fda3f31050d47fc
1 ;;; org-babel-css.el --- org-babel functions for css evaluation
3 ;; Copyright (C) 2009 Eric Schulte
5 ;; Author: Eric Schulte
6 ;; Keywords: literate programming, reproducible research
7 ;; Homepage: http://orgmode.org
8 ;; Version: 0.01
10 ;;; License:
12 ;; This program is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 3, or (at your option)
15 ;; any later version.
17 ;; This program is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
24 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
25 ;; Boston, MA 02110-1301, USA.
27 ;;; Commentary:
29 ;; Since CSS can't be executed, this file exists solely for tangling
30 ;; CSS from org-mode files.
32 ;;; Code:
33 (require 'org-babel)
35 (org-babel-add-interpreter "css")
37 (add-to-list 'org-babel-tangle-langs '("css" "css" nil t))
39 (defun org-babel-execute:css (body params)
40 "Execute a block of CSS code with org-babel. This function is
41 called by `org-babel-execute-src-block' via multiple-value-bind."
42 (message "executing CSS source code block")
43 body)
45 (defun org-babel-prep-session:css (session params)
46 "Prepare SESSION according to the header arguments specified in PARAMS."
47 (error "CSS sessions are nonsensical"))
49 (provide 'org-babel-css)
50 ;;; org-babel-css.el ends here