all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: Johan Sandblom <js@ndblom.se>
Cc: Emacs orgmode <emacs-orgmode@gnu.org>
Subject: Re: sequence of tangles
Date: Sun, 14 Apr 2013 12:02:02 +0200	[thread overview]
Message-ID: <m2ppxxa0rp.fsf@christianmoe.com> (raw)
In-Reply-To: <a4d78ee0e40d6f2cdc2ac8023aadc743@ndblom.se>


Johan Sandblom writes:
> However, tangling this apparently first sorts the chunks according to 
> mode, so the resulting file first contains all the html, then the css, 
> javascript and php in order

Hi,

Try naming the chunks (any name will do), and add a block pulling them
all together with noweb syntax.

#+NAME: header
#+BEGIN_SRC nxml
!<!DOCTYPE html>
<!-- header and stuff -->
#+END_SRC

#+NAME: styles
#+BEGIN_SRC css
/* inline CSS */
#+END_SRC

#+NAME: scripts
#+BEGIN_SRC javascript
// javascript
#+END_SRC

#+NAME: body1
#+BEGIN_SRC nxml
<!-- more html -->
#+END_SRC

#+NAME: body2
#+BEGIN_SRC nxml
<!-- even more html -->
#+END_SRC

#+NAME: fulldoc
#+BEGIN_SRC nxml :tangle test-tangle.php :noweb yes
  <<header>>
  <<styles>>
  <<scripts>>
  <<body1>>
  <<body2>>
#+end_src

Yours,
Christian

      reply	other threads:[~2013-04-14  9:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-14  8:39 sequence of tangles Johan Sandblom
2013-04-14 10:02 ` Christian Moe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2ppxxa0rp.fsf@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=js@ndblom.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.