Veil is a very simple boilerplate for writing static sites.
# Create your project directory $ mkdir my-website; cd my-website # Download the Makefile $ curl -sL https://raw.githubusercontent.com/madx/veil/master/Makefile -o Makefile # Launch the setup task $ make setup
Building the site requires exactly one command:
- Pages are written with Jade and stored in
sources/pages/. They will map to a file in your output dir (i.e.
- Stylesheets are written with Stylus and stored in
sources/stylesheets/. They will map to a file in the
assets/css/folder of your output dir (i.e.
- Static assets from the
static/folder will be copied in the
assets/folder of your output dir, preserving subdirectories (i.e.
$ make watch
Almost every aspect of Veil is fully customisable though a
Creating this file allow you to override all built-in variables and most commands used during the build process.
You can, for example, change the templating system to another engine:
- Change the
PAGE_EXTvariable to the extension used by your template engine
- Redefine the
page-cccanned recipe to use your command.
- There is no 3
Read the Makefile to learn what you can customise.
Here's an example
config.mk for using Redcarpet as your
PAGE_EXT = hbs define page-cc @ mkdir -p $(shell dirname $@) @ redcarpet $< > $@ endef