Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binocarlos/pagemaker
merge together markdown with front-matter and a mustache template
https://github.com/binocarlos/pagemaker
Last synced: 10 days ago
JSON representation
merge together markdown with front-matter and a mustache template
- Host: GitHub
- URL: https://github.com/binocarlos/pagemaker
- Owner: binocarlos
- Created: 2013-11-19T22:48:48.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-04T12:29:31.000Z (about 10 years ago)
- Last Synced: 2024-10-31T18:34:15.548Z (19 days ago)
- Language: JavaScript
- Size: 254 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pagemaker
=========A module to combine the following modules into a 3d animating book created from [bookmaker](https://github.com/binocarlos/bookmaker) data.
* [pageturner](https://github.com/binocarlos/pageturner) for the 3d turning pages
* [bookbinding](https://github.com/binocarlos/bookbinding) for the book image background
* [pagehammer](https://github.com/binocarlos/pagehammer) for touch event page turning
* [pagenav](https://github.com/binocarlos/pagenav) for the navbar
* [pagearrows](https://github.com/binocarlos/pagearrows) for back/next arrows
* [pageshadow](https://github.com/binocarlos/pageshadow) for page shadows## installation
```
$ component install binocarlos/pagemaker
```## example
First have your HTML:
```html
```
Create a new book passing in [bookmaker](https://github.com/binocarlos/bookmaker) data:
```js
var PageMaker = require('pagemaker')
var data = {
title:"My Cool Book",
pages:[{
title:"Intro",
html:"This is the first page
"
},
...]
}
var opts = {
}
var book = PageMaker(opts)// load the page data
book.load(data)// the book, nav and arrows are seperate elements you can append to your gui
book.appendTo('#mybook')
book.nav.appendTo('#navholder')
book.arrows.appendTo('#mybook')
```## licence
MIT