Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Namespace handlebars

    Additional information on Handlebars inside of Foundry. This page lists the Foundry additions to handlebars helpers. You should also familiarize yourself with the baseline functionality of Handlebars through its documentation.

    In addition to the functions listed on this page, Foundry registers a number of simple helpers that are also available. These helpers should not be seen as a substitute for context preparation; it is generally better to perform necessary calculations inside your _prepareContext or _preparePartContext methods.

    eq: (v1, v2) => v1 === v2,
    ne: (v1, v2) => v1 !== v2,
    lt: (v1, v2) => v1 < v2,
    gt: (v1, v2) => v1 > v2,
    lte: (v1, v2) => v1 <= v2,
    gte: (v1, v2) => v1 >= v2,
    not: pred => !pred,
    and() {return Array.prototype.every.call(arguments, Boolean);},
    or() {return Array.prototype.slice.call(arguments, 0, -1).some(Boolean);}

    Interfaces

    SelectOptionsHelperOptions

    Functions

    checked
    concat
    disabled
    editor
    formGroup
    formInput
    getTemplate
    ifThen
    initialize
    loadTemplates
    localize
    numberFormat
    numberInput
    object
    radioBoxes
    renderTemplate
    selectOptions