#!/bin/bash # Utils __shtpl_path__=$(realpath $0) __shtpl_dir__=$(dirname $0) __tpl_path__=$(realpath $1) __tpl_name__=$(basename $__tpl_path__) __tpl_dir__=$(dirname $__tpl_path__) # Execution eval "echo \"$(cat $1 | sed ' # Suppress hashbang 1{ /#\!.*shtpl/ d } # Excape quotes s/"/\\"/g ')\""