StaticSiteLoader

class StaticSiteLoader(val root: File, val args: Args)(using x$3: StaticSiteContext, x$4: CompilerContext)
class Object
trait Matchable
class Any

Value members

Concrete methods

Method loading static site structure based on YAML configuration file.

Method loading static site structure based on YAML configuration file.

The rendered static site will only contain pages that are present in YAML. The following rules are applied:

  • Each subsection will be a separate directory.
  • Nested subsections will result in nested directories.
  • If the subsection object contains location of index and doesn't contain any item, items are loaded using file system from the directory of the index file.
  • By default, directory name is a subsection title converted to kebab case. However, you can override default name by setting "directory" property of the subsection object.
def loadRecursively(currRoot: File, destMappingFunc: File => File): Option[LoadedTemplate]