diff --git a/processor b/processor index d149a04..943d88c 100755 --- a/processor +++ b/processor @@ -47,6 +47,13 @@ exec-template() exec $( resolv-template "$1" ) } +# allows custom templates to invoke the default template (say, to set/override +# options) +resume-default() +{ + exec "$path_default_tpl/$1" +} + # performs index generation; by separating this into a procedure, we allow the # template to invoke it at any point and further process the output do-index() @@ -115,5 +122,5 @@ do-index() } # let the template finish -export -f do-index resolv-template apply-template exec-template +export -f do-index resolv-template apply-template exec-template resume-default exec-template index