This file contains hidden or 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 route = {controller: 'home', action: 'index'}; | |
| var action = router.getAction(route); | |
| var handler = router.getHandler(action, null, route); | |
This file contains hidden or 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 prompt = require("prompt"), | |
| fs = require('fs'), | |
| pwd = process.env.PWD; | |
| var args = process.argv.slice(2), | |
| viewName = args.shift(), | |
| uppercaseRe = /([A-Z])/g; | |
| if (viewName) { | |
| generateViewFiles(viewName); |
This file contains hidden or 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
| UNCAUGHT EXCEPTION: Error: uv_signal_start EINVAL | |
| at errnoException (node.js:540:13) | |
| at process.on.process.addListener (node.js:762:17) | |
| at Object.<anonymous> (/Users/spike1/code/moweb/app.js:105:9) | |
| at Module._compile (module.js:456:26) | |
| at Object.Module._extensions..js (module.js:474:10) | |
| at Module.load (module.js:356:32) | |
| at Function.Module._load (module.js:312:12) | |
| at Function.Module.runMain (module.js:497:10) | |
| at startup (node.js:119:16) |
This file contains hidden or 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
| Handlebars.registerHelper "t", (key, block) -> | |
| window.polyglot.t(key, block.hash) | |
| Handlebars.registerHelper "pluralize", (noun, block) -> | |
| window.polyglot.pluralize(noun, block.hash.smart_count) |
This file contains hidden or 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
| <section class="listing" data-view="listing_view" data-model_id="687210" data-model_name="listing"> | |
| <div class="slideshow"> | |
| ... | |
| </div> | |
| <section class="details tab_panel" data-view="listing_details_view" data-model_id="687210" data-model_name="listing"> | |
| <ul> | |
| ... | |
| </ul> | |
| </section> |
This file contains hidden or 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
| BaseModel = require('rendr/base/model') | |
| module.exports = class User extends BaseModel | |
| url: '/users/:id' | |
This file contains hidden or 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
| { | |
| "user": { | |
| "name": "Spike", | |
| "email": "spike@example.info" | |
| } | |
| } |
This file contains hidden or 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
| <div data-view="index_view" data-cid="view1"> | |
| <h1>Hello, Spike.</h1> | |
| <ul data-view="user_detail_view" data-cid="view2"> | |
| <li>Name: Spike</li> | |
| <li>Email: spike@example.info</li> | |
| </ul> | |
| </div> |
This file contains hidden or 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
| BaseView = require('rendr/base/view') | |
| class IndexView extends BaseView | |
| class UserDetailView extends BaseView |