Notenik supports essentially three different types of Merge Templates.
And these three types are distinguished by the varying placements of the output command.
The first type is used to tailor the display of notes within Notenik itself, as they appear on the Display tab. In this case the merge template file must be named display.html
and placed in the same folder as the Notes themselves. For this type of merge template, there should be no output
command at all, since the output will be routed by Notenik to its own internal Display tab.
The second type of merge template is used to produce a list or index containing multiple occurrences of Notes. For this type, the output
command is typically placed at the very beginning of the template file, and specifies a static output directory and file name.
The third type of merge template is used to produce one output file per input Note. For this type, the output
command is placed after the nextrec command, and the output
file name contains one or more variable fields, so that each Note’s information will be placed in its own file.
The second and third types are typically both used when creating a website.
tags: display, merge-templates, website