Customizing Bespin

Customizing Bespin with syntax and code highlighting
Read the intro to bespin before you continue
Prereq:
Python 2.5 with simplejson or Python 2.6

Peek into dryice.py :

#!/usr/bin/env python
# Simple script to run dryice conveniently in the Customizable package
import sys
import os
mydir = os.path.dirname(__file__)
sys.path.insert(0, os.path.join(mydir, "lib"))
from dryice import tool
tool.main()

Sample json {manifest} :

{
    "output_dir": "tmp",
    "plugins": ["Embedded", "HTML", "JavaScript"],
    "include_sample": true
}

mainfest options :
include_core_test => includes SproutCore's CoreTest unit testing framework
include_sample => sample.html is generated in output_dir
output_dir => Final destination
plugins => list of plugins, need not specify the dependencies for the build!
search_path => provide a list of relative or absolute paths to search for plugins {from the pwd}.

Getting started :
hemanth@bespin $ python dryice.py sample.json
dryice: the Bespin build tool
Using build manifest: sample.json
Placing output in tmp

Exploring and Expanding :

tmp contents 
./tmp
./tmp/BespinEmbedded.js
./tmp/images
./tmp/images/sc-theme-ysprite.png
./tmp/images/icons
./tmp/images/icons/mini_ffffff.png
./tmp/images/icons/shared.png
./tmp/images/icons/mini_454545.png
./tmp/images/icons/mini_888888.png
./tmp/images/icons/mini_222222.png
./tmp/images/sc-toolbar-view.png
./tmp/images/sproutcore-logo.png
./tmp/images/sc-theme-repeat-x.png
./tmp/images/panels
./tmp/images/panels/sprite-x.png
./tmp/images/panels/sprite-y.png
./tmp/sample.html
./tmp/BespinEmbedded.css
./dryice.py

Based on the the json the editor would look like this:Bespin

Share this