LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coreutilsmustache
    Module●Since v0.1

    mustache

    Adapted from https://github.com/noahmorrison/chevron.

    MIT License.

    Attributes

    attribute
    logger
    attribute
    g_token_cache: dict[str, list[tuple[str, str]]]
    attribute
    EMPTY_DICT: MappingProxyType[str, str]

    Functions

    function
    grab_literal

    Parse a literal from the template.

    function
    l_sa_check

    Do a preliminary check to see if a tag could be a standalone.

    function
    r_sa_check

    Do a final check to see if a tag could be a standalone.

    function
    parse_tag

    Parse a tag from a template.

    function
    tokenize

    Tokenize a mustache template.

    Tokenizes a mustache template in a generator fashion, using file-like objects. It also accepts a string containing the template.

    function
    render

    Render a mustache template.

    Renders a mustache template with a data scope and inline partial capability.

    Classes

    class
    ChevronError

    Custom exception for Chevron errors.

    Type Aliases

    typeAlias
    Scopes: TypeAlias
    View source on GitHub