Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nickanderson/875aa63a40a179c52ff9382484d27ce0 to your computer and use it in GitHub Desktop.
Save nickanderson/875aa63a40a179c52ff9382484d27ce0 to your computer and use it in GitHub Desktop.
Example tangling content to different places based on header arguments

Example for tangling the same content to different places based on header arguments

<p> Hello World!</p>

Update master

MASTER
<<html-content>>

Publish

PUBLISHED
<<html-content>>

See

echo /tmp/index1.html
cat /tmp/index1.html
echo /tmp/index2.html
cat /tmp/index2.html
/tmp/index1.html
MASTER
<p> Hello World!</p>
/tmp/index2.html
PUBLISHED
<p> Hello World!</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment