Notes are bundles of attributes
A Tinderbox note is a bundle of information. For example, a note has rich text and a name. If we export the note with an appropriate template, these data will be printed to an html file. We have seen that the export code for exporting a note’s rich text is ^text^
, while the code for the note’s name is ^title^
.
So if I export target_note with a template_note that contains nothing but
<!DOCTYPE html> <html> <head> <title>^title^</title> </head> <body> <p>^text^</p> </body> </html>
… then the exported file will be a valid html file showing title and rich text.
Besides title and rich text, a Tinderbox note contains many other pieces of information. A note is in fact a collection of variables—305, to be precise. Formally speaking, a note is a struct data type: a grouped collection of variables that can be accessed by a single pointer. In Tinderbox-speak, these variables are the note’s attributes.