config/includes

Note

You need version 1.4.0 or newer.

Within umejs, you can call out other files using partials. However, it's also possible to do this without creating extra files. You can then call these using {_INCLUDE()} like you would any file.

With the following config, you would be able to simply do {_INCLUDE("copyright")} anywhere within umejs and it would give you this partial.

const ume = require('@dantenl/umejs');
const path = require('path');
ume({
    includes: {
        copyright: '© 2026',
    },

    // example contentDir and templatePath
    contentDir: path.join(__dirname, 'content'),
    templatePath: path.join(__dirname, 'layout.ume.html'),
});