ob-css.el 1.5 KB

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