Skip to content

Variables Path

Benedict Albrecht edited this page May 20, 2026 · 5 revisions

Variables: Path <<"path">>

Path variables create file-level dependencies by referencing other files in the project.

Syntax

<< "FROM" >>

Example

Given two files:

file.js:

import Class from '../otherfile.js';

otherfile.js:

function Class () {
  ...
}

Crodox Definition

<:import:> import <<name>> from <<"FROM".js>> <:>

The <<"FROM".js>> variable captures the file path and creates a dependency between file.js and otherfile.js. The string symbols (", ', `) do not need to be referred to in the Crodox definition — string objects get combined to a §§§ element within the input parser.

Clone this wiki locally