org-babel-css.el 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ;;; org-babel-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 'org-babel)
  27. (org-babel-add-interpreter "css")
  28. (add-to-list 'org-babel-tangle-langs '("css" "css" nil t))
  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' via multiple-value-bind."
  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 'org-babel-css)
  38. ;;; org-babel-css.el ends here