rmapi-js
    Preparing search index...

    Interface TemplateContent

    content metadata, stored with the "content" extension

    This largely contains description of how to render the document, rather than metadata about it.

    interface TemplateContent {
        author: string;
        categories: string[];
        constants?: { [name: string]: number }[];
        formatVersion: number;
        iconData: string;
        items: object[];
        labels: string[];
        name: string;
        orientation: "portrait" | "landscape";
        supportedScreens: ("rm2" | "rmPP")[];
        templateVersion: string;
    }
    Index

    Properties

    author: string

    the template's author

    categories: string[]

    category names this template belongs to (eg: "Planning", "Productivity")

    constants?: { [name: string]: number }[]

    constant values used by the commands in items

    formatVersion: number

    template configuration format version (currently just 1)

    iconData: string

    Base64-encoded SVG icon image

    items: object[]

    the template definition, an SVG-like DSL in JSON

    labels: string[]

    labels associated with this template (eg: "Project management")

    name: string

    the template name

    orientation: "portrait" | "landscape"

    the orientation of this template

    supportedScreens: ("rm2" | "rmPP")[]

    which screens the template supports:

    • rm2: reMarkable 2
    • rmPP: reMarkable Paper Pro
    templateVersion: string

    semantic version for this template