Added resume-default as abstraction for invoking default templates from custom overrides
parent
6cea4d3426
commit
f620de709c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue