Skip to content

A script for publishing static websites from Jinja templates

Notifications You must be signed in to change notification settings

junkafarian/staple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Staple - A script for publishing static websites from Jinja templates

Initialising a project using PasteScript

If you have installed PasteScript before installing Staple, you will be able to initialise a new staple environment using a paster template...

$ paster create -t staple my_site
$ cd my_site && cat README.txt

Initialising a project from a config file

To create a template directory based on a series of urls taken from a configuration file you can run...

$ echo "/home.html" >> urls.config
$ echo "/about.html" >> urls.config
$ staple generate templates urls.config
...
$ ls templates
about.html	home.html	master.layout

Publishing the site

$ staple publish -o htdocs/ templates/
$ ls htdocs/
about.html	home.html

About

A script for publishing static websites from Jinja templates

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages