iPublish uses templates to generate the HTML pages it creates. You may add your own custom template in the "templates" folder within the iNotePad database folder (~/Documents/iNotePad/templates/).
A template file is an HTML file with the extension .html. It must contain special comment tags to tell iNotePad where to put Title, Notes, etc. You may use the file default.html as a starting point for creating your own template.
The template is divided into 6 parts enclosed within special tags:
<!-- iNotePad-xxx -->
<!-- /iNotePad-xxx -->
Anything outside these tags will be ignored.
iNotePad-Head: This is the head (beginning) of the HTML file. The title of the page (entered in the iPublish dialog) may be inserted with the code [[title]]. The page character set must be defined using the meta tag charset=[[encoding]]. You can use the code [[publication date]] or [[publication date string]] to include the publication date. [[publication date]] will be published as "2006-01-23 22:55:10 -0500" while [[publication date string]] will use the common form "Monday, January 23, 2006".
iNotePad-TopNote: This is the template used to insert a top-level note (a note outside a folder), or when publishing a single note. The code [[subject]] represents the subject of the note and [[note]] represents the note body. You can use the code [[modification date]] or [[modification date string]] to include the modification date. [[modification date]] will be published as "2006-01-23 22:55:10 -0500" while [[modification date string]] will use the common form "Monday, January 23, 2006".
iNotePad-beginFolder: This is the code added prior to inclusion of a folder, when publishing a folder or the whole database. The code [[folder]] represents the name of the published folder.
iNotePad-Note: This is the template used to insert a note (within a folder). The code [[subject]] represents the subject of the note and [[note]] represents the note body. You can use the code [[modification date]] or [[modification date string]] to include the modification date.
iNotePad-endFolder: This is the code added after the folder, and all the notes it contains.
iNotePad-End: This is the end of the HTML file. If you like iNotePad, please leave a link to the iNotePad Home Page here! You can use the code [[publication date]] or [[publication date string]] to include the publication date.