src/scripts/tasks/site.js
function renderState(env, stateDir, nav, componentData, state) {
    const statePath = Path.join(stateDir, 'index.html');

    const raw = env.render('component-raw.html', {
        navigation: nav,
        component: componentData,
        state: state,
        config: config,
        tokens: getTokens(),
    });

    mkdirp.sync(stateDir);
    fs.writeFileSync(statePath, raw, 'utf-8');
}
function renderState(env, stateDir, nav, componentData, state) {
    const statePath = Path.join(stateDir, 'index.html');

    const raw = env.render('component-raw.html', {
        navigation: nav,
        component: componentData,
        state: state,
        config: config,
        tokens: getTokens(),
    });

    mkdirp.sync(stateDir);
    fs.writeFileSync(statePath, raw, 'utf-8');
}
function renderState ( env , stateDir , nav , componentData , state ) { const statePath = Path . join ( stateDir , 'index.html' ) ; const raw = env . render ( 'component-raw.html' , { navigation : nav , component : componentData , state : state , config : config , tokens : getTokens ( ) , } ) ; mkdirp . sync ( stateDir ) ; fs . writeFileSync ( statePath , raw , 'utf-8' ) ; }
Renders the `raw` view of each component's state
Renders the raw view of each component s state