Trio Icon
Trio v5.0.0
Documentation is evolving and is a WIP

Project Structure

The following describes a Trio project's file and folder structure:

Project Folders And Files

root/.cache/

Contains metadata that Trio maintains and uses to implement incremental building of your project.

root/trio.json

Project configuration file. See Configuration for more information.

root/trio.manifest.json

File which contains collections of metadata that are generated every time Trio builds the project.

root/public/

Folder targeted by the build command.

root/release/

Folder targeted by the release command.

root/source/

Contains the following folders which are used for the development of your web site.

root/source/callbacks/

Contains tag-based callback modules, which are referenced by HTML tags in templates, fragments and includes using the data-trio-callback tag attribute. See Tag-Based Callbacks for more information.

root/source/css/

Contains .css files.

root/source/data/

Contains JSON data files that are exposed to tag-based callbacks.

root/source/etc/

Contains files, such as favicon.ico, 404.html, robots.txt, sitemaps, .nojekyll, .etc, for example, that are copied "as is" to the site's root folder.

root/source/filters/

Contains collection filter function modules introduced in v2.0.0.. See Collections for more information.

root/source/fragments/

Contains .md and .html fragment files and folders.

root/source/fragments/articles/

Contains blog-specific article .md and .html fragment files and folders.

root/source/includes/

Contains .md and .html include files.

root/source/lib/

Contains JavaScript modules that are required by tag-based callback modules and collection filter function modules. Introduced in v4.0.0.

root/source/media/

Contains media specific files (e.g. .jpg, .gif, .pdf, .etc).

root/source/sass/

Contains .sass and .scsss files.

root/source/scripts/

Contains run-time JavaScript files.

root/source/templates/

Contains .html template files.

See Also