Skip to main content
Squeditor leverages PHP exclusively as a development templating engine (similar to WordPress), allowing you to use loops, arrays, and template inclusion without needing a live PHP server in production. It compiles directly into pure, flat HTML.

Core Helper Functions

Included globally via base.php, these helpers (squeditor/php/functions.php) prevent you from writing raw include statements everywhere.

get_template_part()

Includes structural components from src/template-parts/.

get_component()

Includes UIKit3 layout wrappers from src/components/.

get_section()

Includes standalone section blocks from src/sections/. This is extremely useful for reusable sections (e.g. Hero, Testimonials) across multiple URLs.

Parsing Frontmatter

To natively handle SEO and layout overrides on a per-page basis inside standard .php files, Squeditor uses a custom frontmatter syntax driven by a PHP comment block at the very top of each page. Example src/pages/about.php:

Base Layout Template

src/page-templates/base.php acts as the master HTML shell. Every page extends it natively. It handles the <head>, metadata, linking the CSS/JS bundles, and injecting the $content variable correctly.
base.php