TelAviv.js API Reference

Get the object:

import telaviv, { setConfig, clearModuleCache } from 'telaviv'

telaviv(config)

Returns a the express middleware. Responds to every request.

app.use(telaviv(config))

setConfig(config)

Changes the config on runtime.

setConfig(config)

clearModuleCache()

Deletes all theme modules from node's require.cache. So you can update components on runtime.

clearModuleCache()

See also:

results matching ""

    No results matching ""