Sha256: c3523cc9bb42b7f88640668ad16b3ef4cd8c98282ab0c3c740577bddd074ef4e
Contents?: true
Size: 839 Bytes
Versions: 1
Compression:
Stored size: 839 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.2.0" 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(); Chester.Application.Helpers = new Base();
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chester-0.2.0 | lib/chester/templates/chester.coffee |