2009-04-23 22:48:22 +00:00
|
|
|
#+TITLE: Testing Litorgy Export
|
|
|
|
#+OPTIONS: toc:nil ^:nil
|
|
|
|
|
|
|
|
|
|
|
|
* tests
|
|
|
|
|
|
|
|
all the tests
|
|
|
|
|
|
|
|
** ruby
|
|
|
|
|
|
|
|
source block is here, but is shouldn't be exported...
|
|
|
|
|
|
|
|
#+begin_src ruby :results silent :exports none
|
|
|
|
class Schulte
|
|
|
|
def initialize
|
|
|
|
puts :eric
|
|
|
|
end
|
|
|
|
end
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
The source block is here, and lets see the code
|
|
|
|
|
|
|
|
#+begin_src ruby :results silent :exports code
|
|
|
|
class Schulte
|
|
|
|
def initialize
|
|
|
|
puts :eric
|
|
|
|
end
|
|
|
|
end
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
This is a source block, and lets see the results
|
|
|
|
#+begin_src ruby :exports results :results replace
|
|
|
|
:the_results
|
|
|
|
#+end_src
|
|
|
|
|
2009-04-23 22:57:16 +00:00
|
|
|
lets see the source, and results for a ruby array
|
|
|
|
#+begin_src ruby :results replace
|
|
|
|
[1, 2, 3, 4].map{ |n| n * 2 }
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
2009-04-23 22:48:22 +00:00
|
|
|
** emacs-lisp
|
|
|
|
|
|
|
|
a table
|
|
|
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
'(1 2 3 4 5)
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
hidden
|
|
|
|
|
|
|
|
#+begin_src emacs-lisp :exports none :results silent
|
|
|
|
9
|
|
|
|
#+end_src
|