Add a paragraph to template_lang.rst. Change slightly the template_dialog upper text.

This commit is contained in:
Charles Haley 2011-01-13 18:30:27 +00:00
parent 3a4ab7c3ca
commit 97a0ae8a3e
2 changed files with 8 additions and 1 deletions

View File

@ -38,7 +38,8 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
This parameter can be None in some cases, such as when evaluating
non-book templates.</li>
<li><b>locals:</b> the local variables assigned to by the current
template program. Your_arguments must be one or more parameter (number
template program.</li>
<li><b>Your_arguments</b> must be one or more parameter (number
matching the arg count box), or the value *args for a variable number
of arguments. These are values passed into the function. One argument
is required, and is usually the value of the field being operated upon.

View File

@ -308,6 +308,12 @@ The following program produces the same results as the original recipe, using on
It would be possible to do the above with no custom columns by putting the program into the template box of the plugboard. However, to do so, all comments must be removed because the plugboard text box does not support multi-line editing. It is debatable whether the gain of not having the custom column is worth the vast increase in difficulty caused by the program being one giant line.
User-defined Template Functions
-------------------------------
You can add your own functions to the template processor. Such functions are written in python, and can be used in any of the three template programming modes. The functions are added by going to Preferences -> Advanced -> Template Functions. Instructions are shown in that dialog.
Special notes for save/send templates
-------------------------------------