Kulfon is a simple and fast static site generator written in Python. By default is uses jinja2 for templating, libsass for stylesheets compilation and [webpack][3] for bundling javascript files. External assets are managed using Bower.
Goals:
- fast
- easy to install
- no
npm
nornode_modules
directory which is large and takes time to install - by default a templating language easy to understand by designers
- no need to write extra wrappers for existing tools
- ES6/7 ready
- use Bower because of flat dependency structure
pip install kulfon
kulfon init [directory]
It creates the following directory structure (directory
is optional, if not provided, the current directory is used):
.
├── data.yml
├── images
├── javascripts
├── stylesheets
└── views
├── index.html
├── layouts
│ └── base.html
└── partials
data.yml
kulfon build
It builds the project, which consists of:
- creating
dist/
directory - creating
styles.css
file insidedist/assets
usinglibsass
compiler - creating
vendor.js
file insdiedist/assets
- creating
app.js
file insdiedist/assets
- moving images from
images
todist/assets