Skip to content
Browse files

get all files committed, ignored, or deleted

  • Loading branch information...
1 parent ee166d5 commit 8c4655929487dcfbfce644e29e0a4554194cf00a @martypdx committed Nov 1, 2012
Showing with 18 additions and 11 deletions.
  1. +3 −0 .gitignore
  2. +8 −1 features/editor/layout/layout.html
  3. +4 −2 features/editor/layout/layout.json
  4. +3 −8 server.js
View
3 .gitignore
@@ -1 +1,4 @@
.nodester.appconfig
+node_modules/*
+*.bat
+*.sublime-*
View
9 features/editor/layout/layout.html
@@ -1 +1,8 @@
-<pre style="color: red;">ReferenceError: templateName is not defined</pre>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><script src="js/common/3rdParty/jquery/jquery.js"></script></head><body>
+<script type="text/javascript">if('the-template-name' !== 'layout') {
+ (function(){
+ var template = $('body').children().eq(0)
+ templates['the-feature']['the-template-name'].activate(template)
+ })()
+}
+</script></body></html>
View
6 features/editor/layout/layout.json
@@ -1,5 +1,7 @@
{
- "css": "",
+ "styles": [],
"html": "",
- "javascript": ""
+ "javascript": "",
+ "feature": "the-feature",
+ "templateName": "the-template-name"
}
View
11 server.js
@@ -1,12 +1,10 @@
var express = require('express')
, fs = require('fs')
, path = require('path')
-
-var app = express.createServer(
- express.static(path.join(__dirname, 'public'))
- , express.bodyParser()
-)
+ , app = express()
+app.use(express.static(path.join(__dirname, 'public')))
+app.use(express.bodyParser())
app.set('view engine', 'jade')
var appToEdit = process.argv.length > 2 ? process.argv[2] : 'jade-editor'
@@ -15,9 +13,6 @@ console.log('Editing app', appToEdit)
app.get('/', function (request, response) {
response.render('index', { layout: false, app: appToEdit });
})
-app.get('/test', function (request, response) {
- response.render('test-jade', { layout: false });
-})
var templateService = require('./lib/common/template-service')
services = {}

0 comments on commit 8c46559

Please sign in to comment.
Something went wrong with that request. Please try again.