Commit ad96114d authored by Michael Murtaugh's avatar Michael Murtaugh

readme

parent f942ae7b
......@@ -42,6 +42,28 @@ Sample output for a single image:
### Making a single image viewer
Rule tileimages on the image to produce the image.json file.
Combine the json with the singleimage template to produce the final HTML.
```
scripts/tileimages image.jpg > image.json
scripts/jinjafy --data image.json templates/singleimage.html > image.html
```
As a makefile:
```makefile
SCRIPTS=../scripts/
%.json: %.jpg
$(SCRIPTS)tileimages $< > $@
%.html: %.jpg %.json ../templates/singleimage.html
$(SCRIPTS)jinjafy --data $*.json ../templates/singleimage.html > $@
```
### Making an image gallery
As a makefile:
```
SCRIPTS=../scripts/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment