Configuration file overview

  • During Archetype bootstrap, the first file that is being loaded is archetype.conf.js . This file can't be renamed or moved without changing the code of archetype.js itself. If you don't want want to use some quite expert configuration, this file has to be available in the same directory as archetype.js
  • archetype.conf.js is a simple JavaScript file which set all configurations used by Archetype.

    All of the configuration properties are sub properties of the Archetype namespace. Those configurations can be some simple string or fully structured HashMap.

  • Let's have a look to the list of these configurations propoerties:
    • Archetype.modules namespace : This HashMap will describes how Archetype will find files on the server using just a simple notation.
    • Archetype.pages namespace : This Hashmap will tell Archetype how and where it will find the start function he has to launch after its bootstrap.
    • Archetype.engine string: Put here the name of the framework you want to use as Archetype engine.
    • Archetype.logger string: Put here the name of the logging system that will be used by default and where all logs will be redirected.
    • Archetype.template string : Describes which engine will be used to evaluate templates by default.