This is all tied in with my other post
Error: SAVE’d variables only allowed in the #Application section - but they are! - ClarionHub
I’m refactoring the template at the moment as its getting a little on the large side, my tpl file is now just these few lines, which is much more manageable. It is a case of getting the right code in the right place though.
#TEMPLATE(IS_ClassWriter,'IS_Class_Writer'),Family('IS_ClassWriter')
#!
#!
#Include('IS_AnEmbedEditorSourceButton.tpw')
#!
#Include('IS_ClassWriter_TODO.TPW')
#Include('IS_ClassWriter_Declarations.TPW')
#Include('IS_ClassWriter_Wizard.TPW')
#Include('IS_ClassWriter_Notes.TPW')
#!
#Include('IS_ClassWriter_Application.TPW')
#Include('IS_ClassWriter_Program.TPW')
#Include('IS_ClassWriter_Module.TPW')
#Include('IS_ClassWriter_Procedure.TPW')