Home Manual Reference Source Test Repository
import Theme from 'reptar/lib/theme/index.js'
public class | source

Theme

Constructor Summary

Public Constructor
public

constructor(objectPattern: {"config": *})

Member Summary

Public Members
public

Collection of all assets for this theme.

public

Raw object that holds the theme config object.

public

Data of asset names and paths that is exposed to templates.

public

The current theme name.

Method Summary

Public Methods
public

async read()

public

update()

public

async write()

Public Constructors

public constructor(objectPattern: {"config": *}) source

Params:

NameTypeAttributeDescription
objectPattern {"config": *}
  • optional
  • default: {}

Public Members

public assets: Object<string, Asset> source

Collection of all assets for this theme.

public config: Object source

Raw object that holds the theme config object.

public data: Object source

Data of asset names and paths that is exposed to templates.

public name: string source

The current theme name.

Public Methods

public async read() source

public update() source

public async write() source