From f620de709cc55ac6ed9f91a3e5343b5447fc4f1c Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 19 May 2013 16:19:21 -0400 Subject: [PATCH] Added resume-default as abstraction for invoking default templates from custom overrides --- processor | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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