Skip to content

Latest commit

 

History

History
85 lines (65 loc) · 3.27 KB

index.md

File metadata and controls

85 lines (65 loc) · 3.27 KB
layout title product product_title product_subtitle download downloadtitle downloadsubtitle repo buttons advert meta_title meta_keywords meta_description meta_image facebook buzz fbsdk ogmeta shots
product2
Restatic pumps Google spreadsheet content to static sites
restatic
Restatic
Pumps spreadsheet data to your static web!
Download v0.2
Requires a POSIX system with PHP
<a href="http://restatic-example.herokuapp.com" class="button product-button-thumbup"><div><div>Visit Demo Page<div class="product-specs">And get some inspiration...</div></div></div></a>
After installation and Firefox restart you can visit the <a href="/test/index.html">FireQuery test page</a>
Restatic pumps Google spreadsheet content to static sites
restatic,static-site,osx,google-docs,google,binaryage,software,tool
Restatic is a command-line utitlity for parsing google spreadsheet content and using it for generating a static site
1
1
1
site_name description email type title url image
BinaryAge website
Restatic pumps Google spreadsheet content to static sites
honza@binaryage.com
product
Restatic
title thumb full
Restatic - a new way how to get Google spreadsheet data to your static site
/shared/img/restatic-mainshot.png
/shared/img/restatic-mainshot-full.png

Usage

Use Google spreadsheet as your simple CMS

Do you create static web sites for your clients? Do they call you when they need some changes?

With Restatic you may leave them editing their data in Google Spreadsheet and regenerate the site when needed. You will provide them with envronment which they know and love (hope your clients are smart enough to love Google Docs).

Add markup to your static site

Just put to your html markup pointing to your data, for example /-Posts-B2-/

  • '/-' and '-/' are separators (delimiters)
  • 'Posts' is a sheet name (gdocs spreadsheet page name)
  • 'B2' is the cell address
  • '-' is a separator between sheet name and the cell specification

Publish your Google spreadsheet

Turn on "Publish to the web" (In File->Publish to the web) and you get the spreadsheet key.

Configure restatic with restatic.yml

  • googleSpreadSheetKey: 0AtkoCAIRJ7BPdGM2Y2tYdV9XRXNsNVVrVnFPeFIwb0E
  • delimiter: /-, -/ (optional)

Call restatic to regenerate your site

restatic /path/to/source/dir /path/to/target/dir' 

Your freshly built site will be generated into target dir. Or alternatively go to the source directory and run restatic -d and your site will be generate to _site directory in source dir.

Installation

sudo bash < <(curl -s https://raw.github.com/binaryage/restatic/master/install.sh)

Links

3rd-party libraries used in restatic:

Source code

Example