trilium_alchemy.core.note.content¶
Class index¶
Canonical
Interface to note’s content.  | 
Symbols¶
- class trilium_alchemy.core.note.content.Content(entity: BaseEntity)¶
 Bases:
trilium_alchemy.core.note.extension.NoteStatefulExtensionInterface to note’s content.
Access as
Note.content, a descriptor mapping to an instance of this class.The expected type depends on
Note.is_string:True: get/setstrFalse: get/setbytes
Get or set content as follows:
note.content = "<p>Hello, world!</p>" assert note.content == "<p>Hello, world!</p>"
Todo
Helper
Note.fileto set content from file, automatically settingmimeand#originalFilename.Example:
note.file = "assets/my_content.html"