Some variables have special meaning that changes attributes when templates are compiled, including:
set escape_start "$" set escape_end "$"
Multiple template files can use the same mode, and all those templates will be available in buffers of that mode.
set mode "emacs-lisp-mode"
If there are multiple templates with the same context and name, the template with the highest priority number will be used.
If multiple files have the same priority, then then sort order is unpredictable. If no template names match, then it doesn't matter.
set priority "35"
The application with a particular name will access these templates from Lisp code.
set application "document"
Set the “project” special variable to a directory name. Only files under that directory will be able to access the templates in that file.
Any template file that has a project specified will get have a priority that is set between SRecode base templates, and user defined templates.
Templates can be compiled via a project system, such as EDE. EDE loaded templates will get a project set automatically.
set project "/tmp/testproject"
If you need to insert the characters that belong to the variables
escape_end, then place those into
a variable. For example
set escape_start "$" set escape_end "$" set DOLLAR "$"