Skip to content
Clint Hill edited this page Jan 2, 2012 · 20 revisions

Getting Started

The fastest way to get started is to setup and use interpreted mode. Once your changes are all finalized and you are very comfortable using Hitch, you might consider precompiling.

Interpreted Mode (Development) ----------------------- To get started, mark a `link` or `style` tag in your page with the `-hitch-interpret` attribute.
<link rel="stylesheet" href="styles.css" type="text/css" -hitch-interpret="true"  />
<script type="text/javascript" src="hitch-interpret-min.js"></script>
Pre-compiled Mode (Production) ------------------------------------ You can use the rulecompiler tool to create precompiled versions (very fast) for production. The output of the tool will show you what to include. In the end it will look something like this (note there are no dependencies in this version and the engine itself is <2k):
<link rel="stylesheet" href="styles-compiled.css" type="text/css" />
<script type="text/javascript" src="hitch-min.js"></script>
<script type="text/javascript" src="myHitches.js"></script>
<script type="text/javascript" src="styles-compiled.js"></script>
Clone this wiki locally