So I'm making a website using an org document and tangling.
I've created the basic structure of the site using
* file coolsite.org
#+BEGIN_SRC sh
rails new coolapp
#+END_SRC
This creates a app/views/layouts/appication.html.erb
file,
with basics like a head tag, body tag, html tag, etc.
If I wanted to add for example a <meta name="keywords" content="HTML,CSS,XML,JavaScript">
tag, I would copy that code
in to an org src block, and add my new tag.
#+BEGIN_SRC html :tangle app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Abc</title>
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<%= csrf_meta_tags %>
</head>
<body>
<%= render 'layouts/navigation' %>
<%= yield %>
<%= render 'layouts/footer' %>
</body>
</html>
#+END_SRC
So from the examples I've seen on the web, with literate programming, org files are ordered like a diary. Things are usually added to the end of the org file.
So let's say 1 week after writing the above tangle block, I need to add another meta tag to the file, in this case an author meta tag: <meta name="author" content="John Doe">
Do I:
Go back and revise the old tangle block
or
create a new block with the revised code?
If I choose the latter, an interesting situation can arise in the long run where a single org file has multiple :tangle blocks that output to the same file. After the tangling, which one is left? is it the src block that appeared later-most in the org file ....
Note: The site is "generated" by doing C-c C-v t (org-babel-tangle)