Use locale identificator in filenames to generate locale specific content.
...
Installation
npm install -g npm-cms
Usage
npm-cms ./config.yaml
config.yaml
locales:
- en
- et
source: ./source
build: ./build
timeout: 10
jade:
basedir: ./source/_templates
pretty: false
locales: List of locale folders to generate. You can put locale identificator to filename (like index__.en__.jade or index__.et__.yaml) for locale speciffic content.
source: Folder with source files.
build: Folder to put generated HTML.
timeout: Seconds to sleep after each run.
jade.basedir: Jade basedir for simpler include/extend
jade.pretty: Boolean to set if output HTML is prettified or not.