Adds a live editor for creating config json (demo). Also decouples "loading a gist" from laying out the config json on the page, which could come in handy when hitting GitHub's API limit for fetching gists -- it could pull from a local json file.
I think the decoupling needs a bit more thought before it's finalized. Right now I just named the file layout-from-gist.js, which is not very elegant. If layout.js takes a config json object and lays it out on the page (it assumes #header-container and #page-content are present), how can we have an entry point for loading from a gist and for loading from a file...
Adds a live editor for creating config json (demo). Also decouples "loading a gist" from laying out the config json on the page, which could come in handy when hitting GitHub's API limit for fetching gists -- it could pull from a local json file.
I think the decoupling needs a bit more thought before it's finalized. Right now I just named the file
layout-from-gist.js
, which is not very elegant. Iflayout.js
takes a config json object and lays it out on the page (it assumes#header-container
and#page-content
are present), how can we have an entry point for loading from a gist and for loading from a file...