This might work. Try it on a test server and report your results.
Create a templates-custom directory. (Substitute your locale)
# mkdir -p /etc/e-smith/templates-custom/etc/e-smith/locale/en-us/etc/e-smith/web/functions
Copy and edit the single source file.
# cp /etc/e-smith/locale/en-us/etc/e-smith/web/functions/initial.cgi /etc/e-smith/templates-custom/etc/e-smith/locale/en-us/etc/e-smith/web/functions
# nano /etc/e-smith/templates-custom/etc/e-smith/locale/en-us/etc/e-smith/web/functions/initial.cgi
Update the post-upgrade event templates2expand list
# mkdir -p /etc/e-smith/events/post-upgrade/templates2expand/etc/e-smith/locale/en-us/etc/e-smith/web/functions
# touch /etc/e-smith/events/post-upgrade/templates2expand/etc/e-smith/locale/en-us/etc/e-smith/web/functions/initial.cgi
Test
# signal-event post-upgrade; signal-event reboot
Darrell
I doubt if that is what you really want as on updates you need to manually port all the updates or you will have to do this process all over again. Perhaps the best thing to get this implemented properly for the future is to add this as a New Feature Request in the bugtracker.
I also doubt that this will work, as I am not sure if the template engine is capable of parsing these files (properly), but that is something that will become clear if you try this, preferably on a test server.