a simple template engine in bash