Skip to content

Instantly share code, notes, and snippets.

@ducin
Created April 7, 2013 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ducin/5330919 to your computer and use it in GitHub Desktop.
Save ducin/5330919 to your computer and use it in GitHub Desktop.
Concatenate all ICanHaz templates to one single file to make your project both load templates efficient/flexible and easy to maintain for many developers to work within a version control system
#!/bin/bash
path="src/main/web"
> "$path"/templates.ich
for file in "$path"/templates/*
do
cat "$file" >> "$path"/templates.ich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment