1
0
Fork 0

Added resume-default as abstraction for invoking default templates from custom overrides

master
Mike Gerwitz 2013-05-19 16:19:21 -04:00
parent 6cea4d3426
commit f620de709c
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 8 additions and 1 deletions

View File

@ -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