Skip to content

Instantly share code, notes, and snippets.

@vilmibm
Created October 29, 2011 18:57
Show Gist options
  • Save vilmibm/1324928 to your computer and use it in GitHub Desktop.
Save vilmibm/1324928 to your computer and use it in GitHub Desktop.
chiptheglasses blog engine
#!/usr/bin/perl
chdir 'posts';
($f = `cat ../template.html`) =~ s/\$POSTS/`ls -r | xargs cat`/e;
`echo "$f" > ../build.html`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment