Skip to content

Components of a Salal project

haskelt edited this page May 10, 2021 · 3 revisions

A minimal Salal project consists of three directories:

  • design
  • content
  • build

The design directory must have a subdirectory templates, which contains HTML templates that provide a 'skeleton' for various elements of a webpage. At a minimum, you need a template that can be used to build a full webpage. But you can also have templates for any part of a page. For example, you could have a 'product' template or a 'comment' template. In most cases, a template will include one or more placeholders that can be filled with content. For example, a 'product' template might have placeholders for 'name', 'description', and 'price'.

The content directory contains a set of XML files, one for each webpage in the site. Each file is essentially directions for how to build that page. It indicates what templates to use, and what content to insert for each placeholder in the templates.

The build directory is where the files for the website are placed after they are generated by Salal. By default, the files are placed in a directory build/default.

Clone this wiki locally