ob-css.el 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ;;; ob-css.el --- org-babel functions for css evaluation
  2. ;; Copyright (C) 2009 Eric Schulte
  3. ;; Author: Eric Schulte
  4. ;; Keywords: literate programming, reproducible research
  5. ;; Homepage: http://orgmode.org
  6. ;; Version: 0.01
  7. ;;; License:
  8. ;; This program 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, or (at your option)
  11. ;; any later version.
  12. ;;
  13. ;; This program is distributed in the hope that it will be useful,
  14. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. ;; GNU General Public License for more details.
  17. ;;
  18. ;; You should have received a copy of the GNU General Public License
  19. ;; along with GNU Emacs; see the file COPYING. If not, write to the
  20. ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  21. ;; Boston, MA 02110-1301, USA.
  22. ;;; Commentary:
  23. ;; Since CSS can't be executed, this file exists solely for tangling
  24. ;; CSS from org-mode files.
  25. ;;; Code:
  26. (require 'ob)
  27. (defun org-babel-expand-body:css (body params &optional processed-params)
  28. "Expand BODY according to PARAMS, return the expanded body." body)
  29. (defun org-babel-execute:css (body params)
  30. "Execute a block of CSS code with org-babel. This function is
  31. called by `org-babel-execute-src-block'."
  32. (message "executing CSS source code block")
  33. body)
  34. (defun org-babel-prep-session:css (session params)
  35. "Prepare SESSION according to the header arguments specified in PARAMS."
  36. (error "CSS sessions are nonsensical"))
  37. (provide 'ob-css)
  38. ;;; ob-css.el ends here