It seems that :exports
option has no influence when exporting to HTML or PDF.
I am using Org 9.0.9 and Emacs 25.1.1.
The following code, for example, even with :exports=none
both code and results are exported to the output.
#+TITLE: my document
#+AUTHOR: Alice Bob
* one section
ia oja jofij aofjodfj
** sub section
sd sssioj oi j
#+NAME: named-block
#+HEADER: :var data=2
#+BEGIN_SRC emacs-lisp :exports none
(message "data:%S" data)
#+END_SRC
#+RESULTS: named-block
: data:2
Anyone has the same issue?