Sha256: afdd6546e64b2c08c44cc5505584cd0a9b3c63cd7309376afab4c6bf9ba59828
Contents?: true
Size: 795 Bytes
Versions: 3
Compression:
Stored size: 795 Bytes
Contents
class Base name: "Base" children: [] find: (name) -> for child in this.children if child.name == name result: child break result add: (child) -> this.children[this.children.length]: child class Application extends Base version: "0.0.1" run: (options) -> this.find(options.controller)[options.action ?= 'index'](options.params ?= {} ) class Controller extends Base name: "Controller" class View extends Base name: "View" data: -> result = {} for child in this.children result[child.name] = child.value result render: -> print "Not Implemented" Chester.View = View; Chester.Controller = Controller; Chester.Application = new Application(); Chester.Application.Models = new Base();
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chester-0.1.2 | lib/chester/templates/chester.coffee |
chester-0.1.1 | lib/chester/templates/chester.coffee |
chester-0.1.0 | lib/chester/templates/chester.coffee |