7x Products Exponential Code Drafts and publishing
← Exponential Code

// Exponential Code

Drafts and publishing

Every change is your own draft until you publish it. A publish checks the file, keeps a backup, writes it, commits it and clears what it affects, and every publish can be reverted.

Exponential 6 Open source · GPL v2 or later
The Drafts view: recent publishes and changesets, each with a Revert button, beside the editor The Drafts view: recent publishes and changesets, each with a Revert button, beside the editor
The Drafts view: recent publishes and changesets, each with Revert.

Drafts

Every change is a draft of the signed-in user, saved with Ctrl+S and automatically a second and a half after you stop typing. Drafts stay until they are published or discarded. When the file changed since your draft started, the draft is outdated: it opens with a note and a Compare button, and you can merge it with the file as it is now.

What a publish does

  1. "Verify it's you", when your confirmation is not fresh.
  2. The lint gate: php -l for PHP, the template compiler for templates, a JSON check for JSON. Errors refuse the publish and are listed in Problems; warnings only show.
  3. A backup of the previous version of the file.
  4. The file is written through a temporary file and one rename, keeping its mode.
  5. A git commit of that one file in its own repository, with a house prefix (Updated:, Added:, Removed:, Renamed:). Never pushed.
  6. The caches the file affects: templates clear the template, template-block and content caches; INI files the INI caches; stylesheets and scripts the packer.
  7. An audit record with the checksum before and after, never the text.

Changesets and going back

  • Put drafts into a named changeset and publish it all or nothing: every file is checked first, and if one write fails, the files already written are put back. One commit per repository, one cache clear for all.
  • "Recent publishes" lists single publishes and changesets; Revert puts every file back to its backup in one step, with its own commit.
  • Files that are gone but have a backup can be restored as a draft.
  • From the console: ./console exp:code:rollback --list, then --entry=<id> or --file=<path> --backup=<id>, a dry run until --apply.

Deploying a PHP or INI change

With DeployAfterPublish=enabled in code.ini, a published PHP or INI file runs the deploy command of the installation, by default exp:velocity deploy --no-fpm --no-velocity, and its PASS and FAIL lines show in Output.

More: Drafts and changesets and Publish a set of changes and roll it back in the manual.

// why Exponential

Ready for production on day one. Secure by default.

Other systems make you program before you see a result. Exponential is a finished platform the moment the installation ends.

01

Installed = shippable

Content model, roles, versions, workflows, search and caching are there when the installer finishes. No plugins to pick, no code to write first.

02

Request shield built in*

A web application firewall decides every request before the site runs. WordPress's own hardening guide sends you to plugins or a separate firewall.

03

No kernel gluing

Frameworks hand you components to assemble into a CMS. In Exponential that work is done, tested and maintained for you.

Stop reinventing the wheel. Drive the roadster: the price of an entry-level car, built like a tank for production.*

*No system is immune to every attack; Exponential ships the request shield and secure defaults so most common attacks are blocked before they reach your site, and 7x keeps it patched.

// more about Exponential Code

Keep exploring.

Exponential Code →

Features

Everything the workbench does in 0.0.0.1, view by view: the editor, language services, preview, source control, working together and the…

Read more →

Templates and overrides

From a page to the template that draws it, and from a template to every rule that uses it. A new override in one step, and the classic…

Read more →

Security and accessibility

Policies and a Designer role, masked secrets, a terminal that is off by default, a security review before it shipped, and WCAG 2.2 AA in…

Read more →

Install

Exponential Code comes with every Exponential installation on PHP 8.0 or later. Activate it, create its drafts table, give your designers…

Read more →

Download and releases

The latest release is 0.0.0.1, from November 29, 2026. Get it with Composer or from GitHub.

Read more →

Edit your site where it runs.

Switch Exponential Code on in a few minutes, or let 7x set it up, with roles for your designers, on 7x hosting.