This package has been deprecated

Author message:

Consider upgrading to candygen 2.0: see github.com/rustamli/candygen for more details

candygen

1.4.0 • Public • Published

candygen 🍬

candygen Scriptable Static Website Generator - running on Node.js

Installation

npm install candygen -g

Usage

Open cmd go to any folder with a website template (a folder containing generator.xml or generator.json) and run:

candygen

This will start a dev server, to stop it simply close the cmd window or press Ctrl + C

After the first generation, candygen will watch files for changes and will update website automatically

candygen once

This will generate the website without starting a web server

Specify custom port

candygen port=7700

Run for non-lmx static websites i.e. instead of using python SimpleHTTPServer

candygen static
candygen static port=3232

arguments could be in any order

Download as ZIP

  • go to /zip to download deployable template source (with /data folder removed)
  • go to /zip-result to download rendered website output

Special variables

_page.path - path to page _page.fullPath - full path to page including page name _page.name - page name (last part of url)

Extras

Add extra tools in generator.xml:

<extras>
  <extra name="email-tools" />
</extras>

Support

Contact turan@rustam.li if you got any questions

Readme

Keywords

Package Sidebar

Install

npm i candygen

Weekly Downloads

1

Version

1.4.0

License

MIT

Last publish

Collaborators

  • rustamli