** tangle templates
:PROPERTIES:
:DATE: 2010-12-13
:END:
#+name: template-heading
#+begin_src emacs-lisp
some stuff here
#+end_src
#+name: template-footing
#+begin_src emacs-lisp
some other stuff here
#+end_src
#+name: template
#+begin_src sh :results output :noweb yes :var body="body stuff"
heading=$(cat<<EOF
<<template-heading>>
EOF
)
footing=$(cat<<EOF
<<template-footing>>
EOF
)
echo $heading
echo "$body"
echo $footing
#+end_src
#+call: template[:noweb yes](body="something new")
#+name: template[:noweb yes](body="something new")
: some stuff here
: something new
: some other stuff here