Spanish Total.js
English
Documentation For AI agents
Contents

UI Builder compiler

Prepare a schema of the UI Builder designer for production with F.uibuildercompiler().

.md GitHub

F.uibuildercompiler(opt, [callback]) prepares a schema from the UI Builder designer for production. It finds the components used in the schema, resolves their URLs, and with download: true embeds their HTML, so the client does not need to download them.

exports.install = function() {
    ROUTE('POST /api/apps/', async function() {
        var $ = this;
        var app = await F.uibuildercompiler({ schema: $.body.schema, download: true });
        $.json(app);
    });
};

Use local: true when the components are already available on the client; then only the list of used components is returned.

Made in Europe