Skip to content

Instantly share code, notes, and snippets.

@kuccello
Created June 25, 2010 19:59
Show Gist options
  • Save kuccello/453371 to your computer and use it in GitHub Desktop.
Save kuccello/453371 to your computer and use it in GitHub Desktop.
taskmap.js
-------------
var sys = require('sys');
sys.puts("Loading taskmap...");
var Taskmap = function () {
this.respondsWith = ['html', 'json', 'txt'];
this.index = function (params) {
//this.respond('This is fucked.');
this.respond({params: params});
}
}
exports.Taskmap = Taskmap;
sys.puts("...done.");
-------
Dir
-------
.
|-- app
| |-- controllers
| | |-- activities.js
| | |-- application.js
| | |-- issues.js
| | |-- iterations.js
| | |-- main.js
| | |-- projects.js
| | |-- stories.js
| | |-- taskmap.js
| | `-- users.js
| |-- models
| | |-- activity.js
| | |-- issue.js
| | |-- iteration.js
| | |-- project.js
| | |-- story.js
| | `-- user.js
| `-- views
| |-- activities
| | |-- add.html.ejs
| | |-- edit.html.ejs
| | |-- index.html.ejs
| | `-- show.html.ejs
| |-- issues
| | |-- add.html.ejs
| | |-- edit.html.ejs
| | |-- index.html.ejs
| | `-- show.html.ejs
| |-- iterations
| | |-- add.html.ejs
| | |-- edit.html.ejs
| | |-- index.html.ejs
| | `-- show.html.ejs
| |-- projects
| | |-- add.html.ejs
| | |-- edit.html.ejs
| | |-- index.html.ejs
| | `-- show.html.ejs
| |-- stories
| | |-- add.html.ejs
| | |-- edit.html.ejs
| | |-- index.html.ejs
| | `-- show.html.ejs
| |-- taskmap
| | |-- _js.html.ejs
| | `-- index.html.ejs
| `-- users
| |-- _form.html.ejs
| |-- add.html.ejs
| |-- edit.html.ejs
| |-- index.html.ejs
| `-- show.html.ejs
|-- config
| |-- environments
| | |-- development.js
| | `-- production.js
| |-- inflections.js
| |-- init.js
| `-- router.js
|-- lib
|-- public
| |-- css
| | |-- base.css
| | |-- extensions.css
| | |-- grid.css
| | |-- master.css
| | `-- themes
| | |-- blue.css
| | |-- green.css
| | `-- red.css
| |-- favicon.ico
| |-- img
| | |-- Harbinger-Logo.png
| | |-- bg.png
| | |-- bg2.png
| | |-- boxheader.gif
| | |-- btn-bg-hover.png
| | |-- btn-bg.png
| | |-- facebox
| | | |-- b.png
| | | |-- bl.png
| | | |-- br.png
| | | |-- closelabel.gif
| | | |-- loading.gif
| | | |-- tl.png
| | | `-- tr.png
| | |-- forms.png
| | |-- gallery
| | | |-- gallery1-thumb.jpg
| | | |-- gallery1.jpg
| | | |-- gallery2-thumb.jpg
| | | |-- gallery2.jpg
| | | |-- gallery3-thumb.jpg
| | | `-- gallery3.jpg
| | |-- icons
| | | |-- notifications
| | | | |-- error.png
| | | | |-- info.png
| | | | |-- success.png
| | | | |-- tip.png
| | | | `-- warning.png
| | | `-- small
| | | |-- close.png
| | | |-- page_delete.png
| | | |-- page_edit.png
| | | |-- user_delete.png
| | | `-- user_edit.png
| | |-- input-bg.gif
| | |-- logo.png
| | |-- nav-dd-bg.gif
| | |-- nav-hover.gif
| | |-- nav.gif
| | |-- tipsy.gif
| | `-- usernav-bg.gif
| `-- js
| |-- excanvas.js
| |-- functions.js
| |-- jquery.cookie.js
| |-- jquery.facebox.js
| |-- jquery.idTabs.js
| |-- jquery.tipsy.js
| |-- jquery.uniform.js
| |-- jquery.visualize.js
| |-- models
| | |-- model.js
| | `-- user.js
| `-- util
| |-- async.js
| |-- date.js
| |-- form.js
| |-- meta.js
| |-- string.js
| `-- url.js
`-- vendor
`-- geddy-core -> /Users/kuccello/.node_libraries/geddy-core
---------------
router.js
---------------
...
router.match('/taskmap').to({controller: 'Taskmap', action: 'index'});
...
-----------
views/taskmap/index.html.ejs
----------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- META TAGS -->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!-- /META TAGS -->
<!-- CSS -->
<style type="text/css">@import url("css/base.css");</style>
<style type="text/css">@import url("css/grid.css");</style>
<style type="text/css">@import url("css/extensions.css");</style>
<link href='css/themes/blue.css' rel='stylesheet' type='text/css' />
<!-- /CSS -->
<title>TaskMap - A map to get you there</title>
<%= partial('_js', {params: params});%>
</head>
<body class="layout980">
<div id="page-wrapper" class="width">
<!-- HEADER -->
<div id="header">
<!-- USERAREA -->
...
---------------
Error:
---------------
Error: 500 Internal Server Error
Error: Template path "app/views/_js.html.ejs" not found
at Error. (/Users/kuccello/Development/SoldierOfCode/Projects/TaskMap/vendor/geddy-core/lib/errors.js:39:13)
at [object Object].partial (/Users/kuccello/Development/SoldierOfCode/Projects/TaskMap/vendor/geddy-core/lib/controller.js:343:15)
at Object.partial (/Users/kuccello/Development/SoldierOfCode/Projects/TaskMap/vendor/geddy-core/lib/controller.js:327:28)
at [object Object]. (eval at (/Users/kuccello/.node_libraries/geddy-core/lib/fleegix.js:1:13157))
at [object Object].process (/Users/kuccello/.node_libraries/geddy-core/lib/fleegix.js:1:13157)
at /Users/kuccello/Development/SoldierOfCode/Projects/TaskMap/vendor/geddy-core/lib/templates.js:92:13
at fs:81:13
at node.js:221:9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment