kalastatic
Static site application framework for prototyping and styleguiding.
Install
Dependencies
Globally
$ npm install kalastatic -g
Project Dependency
To install KalaStatic as a dependency in your project:
$ npm install kalstatic --save
Usage
Convention
Construct your source files, using the template engine name in the file extension.
src/index.html.jade
---
youAreUsingJade: true
pretty: true
---
doctype html
html(lang="en")
head
title= title
body
h1 Jade - node template engine
Configuration
KalaStatic can be configured through a kalastatic.yaml
file. The default options are as follows:
base: '.',
source: 'src',
destination: 'build',
pluginOpts: {}
kss:
builder: null
title: "Styleguide"
homepage: styles/homepage.md
css: ../styles/main.css
source:
- src/components/
- src/styles/
Build
Globally
$ kalastatic build
Project Dependency
$ node_modules/.bin/kalastatic build
API
KalaStatic can be used a JavaScript API. Calling KalaStatic()
will build, and return a Promise.
var KalaStatic = require('kalastatic')
KalaStatic('path/to/site').then(function() {
})