Browse Source

renaming iorg-js files

Eric Schulte 8 years ago
parent
commit
f60281203a
5 changed files with 0 additions and 47 deletions
  1. 0 0
      iorg/lisp/iorg-js.el
  2. 0 0
      iorg/src/iorg-js.css
  3. 0 0
      iorg/src/iorg-js.js
  4. 0 28
      iorg/src/iorg-server.el
  5. 0 19
      iorg/src/iorg-util.el

iorg/src/org-e-iorg-js.el → iorg/lisp/iorg-js.el


iorg/src/org-e-iorg-js.css → iorg/src/iorg-js.css


iorg/src/org-e-iorg-js.js → iorg/src/iorg-js.js


+ 0 - 28
iorg/src/iorg-server.el

@@ -1,28 +0,0 @@
-;;; iorg-server.el --- elnode server for iorg
-
-;;; Code:
-(require 'elnode)
-(require 'org-e-iorg-js)
-
-(defconst iorg-server-urls
-  '(("^$"      . iorg-default-handler)
-    ("^edit/$" . iorg-edit-handler)))
-
-(defun iorg-server-dispatcher-handler (httpcon)
-  "Dispatch requests to the 'iorg' app"
-  (elnode-log-access "iorg" httpcon)
-  (elnode-dispatcher httpcon iorg-server-urls))
-
-(defun iorg-default-handler (httpcon)
-  "Serves the start-page of the 'simple' app"
-  (let ((path ()))
-    (elnode-send-file httpcon (file-contents (org-e-iorg-js-export-file path)))))
-
-(defun iorg-edit-handler (httpcon)
-  "Called by the elnode form handler to update headline."
-  (message "entering `iorg-edit-handler'")  
-  (let ((params (elnode-http-params httpcon)))
-    (message "These are the http-params: \n %s" params)))
-
-(provide 'iorg-server)
-;;; iorg-server.el ends here

+ 0 - 19
iorg/src/iorg-util.el

@@ -1,19 +0,0 @@
-;;; iorg-util.el --- utility functions
-
-;;; Code:
-(defmacro while-visiting-file (file &rest body)
-  "Execute BODY in a temporary buffer visiting FILE."
-  (declare (indent 1))
-  `(with-temp-buffer
-     (insert-file ,file)
-     ,@body))
-(def-edebug-spec while-visiting-file (form body))
-
-(defun file-contents (path)
-  (while-visiting-file path (buffer-string)))
-
-(defvar iorg-base
-  (file-name-directory (or load-file-name (buffer-file-name))))
-
-(provide 'iorg-util)
-;;; iorg-util.el ends here