Skip to content

Instantly share code, notes, and snippets.

View dmuskat's full-sized avatar

David Muskat dmuskat

  • Flexion
  • Madison, Wisconsin
View GitHub Profile
VIEWS.SPEC.COFFEE
describe "views.Form: view for the page", ->
formView = null
formViewModel = null
formModel = null
formulas = null
formulaIds = null
referenceMenuModel = null
#
# Displays a test item
#
class views.Item extends Backbone.View
tagName: 'div'
className: 'test-item'
template: getTemplate 'template-item-page'
render: ->
prompt = @model.itemImage.prompt.replace("<![CDATA[", "").replace("]]>", "")
html = @template.render
MODEL COFFEE FILE image.coffee :
window.models = {} unless window.models?
imageSchema =
"type":"object"
"id":"#image"
"properties":
"name": { "type":"string" }