Home Manual Reference Source Test Repository
import Metadata from 'reptar/lib/metadata.js'
public class | source

Metadata

Handles all metadata about your site that will be accessible within every render context.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Site wide data available in all templates.

Method Summary

Public Methods
public

get(objPath: [objPath]): *

Gets either the entire metadata object or a part of it.

public

set(objPath: string | Array, value: *)

Set a value on our metadata.

Public Constructors

public constructor() source

Public Members

public metadata: Object<string, Object> source

Site wide data available in all templates.

Public Methods

public get(objPath: [objPath]): * source

Gets either the entire metadata object or a part of it.

Params:

NameTypeAttributeDescription
objPath [objPath]

Property path of value we want back.

Return:

*

public set(objPath: string | Array, value: *) source

Set a value on our metadata.

Params:

NameTypeAttributeDescription
objPath string | Array

Path where we're setting our value.

value *

Value we're setting.