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]: string | number }[];
        formatVersion?: number;
        iconData: string;
        id?: string;
        items: object[];
        labels?: string[];
        name: string;
        orientation: "portrait" | "landscape";
        supportedScreens?: ("rm2" | "rmPP")[];
        templateVersion: string;
    }
    Index
    author: string

    the template's author

    categories: string[]

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

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

    named constants used by the items DSL

    A value is either a literal number or an expression string that references other constants and templateWidth, e.g. "templateWidth - (offsetX * 2)".

    formatVersion?: number

    template configuration format version (currently just 1)

    iconData: string

    Base64-encoded SVG icon image

    id?: string

    the template's own id, when present

    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