This is the body, it can be edited!?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Currently based on work by Thomas Parslow | |
# See: https://gist.github.com/1396231 | |
### | |
lumbar = | |
version: "0.0.1" | |
class lumbar.Model | |
@field: (name, options) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.lumbar = | |
version: "0.0.1" | |
start: (mountPoint) -> | |
console.log "lumbar.start", arguments... | |
lumbar.root.render() | |
_.mixin obj: (key, value) -> | |
hash = {} | |
hash[key] = value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Block | |
@field "start" | |
@field "end" | |
@has_one "event", | |
model: Event | |
class Event | |
class BlockCollection | |
initialize: -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
WARNIG: This was 100% written in notepad without debugging. | |
### | |
class lumbar.View | |
@attachDefaults: | |
mountPoint: "@" | |
mountMethod: "html" | |
type: "one" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cache, coffee, coffeekup, coffeescript_helpers, elements, merge_elements, skeleton; | |
var __slice = Array.prototype.slice, | |
__hasProp = Object.prototype.hasOwnProperty, | |
__indexOf = Array.prototype.indexOf || | |
function (item) { | |
for (var i = 0, l = this.length; i < l; i++) { | |
if (__hasProp.call(this, i) && this[i] === item) return i; | |
} | |
return -1; | |
}, __extends = function (child, parent) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lumbar.view "edit.topbar", | |
template: -> | |
div -> | |
h1 "Gister" | |
h2 $m("gist.description") | |
lumbar.view "edit.sidebar.filename", | |
template: -> | |
class = if @filename == $m("active.filename") then "active" else "inactive" | |
li class: class -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CoffeeScript Compiler v1.1.4-pre | |
* http://coffeescript.org | |
* | |
* Copyright 2011, Jeremy Ashkenas | |
* Released under the MIT License | |
*/ | |
(function (a) { | |
var b = function () { | |
function a(b) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Test page</title> | |
<link rel="stylesheet" href="style.css" type="text/css" /> | |
</head> | |
<body> | |
<h1>Header 1</h1> | |
<p>Paragraph</p> | |
</body> |