Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created June 13, 2010 21:10
Show Gist options
  • Save swannodette/437009 to your computer and use it in GitHub Desktop.
Save swannodette/437009 to your computer and use it in GitHub Desktop.
// ================== Highlights.html
<span class="TableContainer">
<span class="HighlightsSummary"></span>
<input class="HighlightsInput"></input>
<span class="HighlightsColors">
<% (6).times(function(i) { %>
<span class="GenericHighlightsColor HighlightsColor<%= i+1 %>"></span>
<% }); %>
</span>
<span class="HighlightsClose"></span>
</span>
// ================== create DOM from template
this.element = this.template("space").toElement();
// ================== attrs.json
{
"name": "Highlights",
"authors": ["avital", "mushon", "dnolen"],
"icon": "Highlights.png",
"description": "Highlight text on a webpage.",
"tooltip": "Highlight text on a webpage.",
"tagline": "markup text on the page",
"version": "0.1",
"ui" : {"space": {"html": "Highlights.html", // will create a template called space
"css": "Highlights.css"}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment