Skip to content
clintjhill edited this page Feb 12, 2012 · 20 revisions

Getting Started

First add Hitch to your page.

<script src="hitch.js" type="text/javascript" charset="utf-8"></script>

Now mark a link or style tag in your page with the boolean x-hitch-interpret attribute.

<link rel="stylesheet" href="styles.css" type="text/css" x-hitch-interpret="true"/>

<style x-hitch-interpret="true">
	@hitch-const -my-toolbox nav div.toolbox .titlebar span:nth-child(2) .icon;
	@hitch-const -logo-blue #336699;

	div:hitch-is(.logo){
		background-color: -logo-blue;
	}
</style>

From here you can begin to use Out of the Box hitches or start Writing Your Own

Clone this wiki locally