forked from mauricemach/zappa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate node-pile. This closes issue mauricemach#79.
- Loading branch information
Showing
6 changed files
with
122 additions
and
83 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
require('./zappa') -> | ||
|
||
@enable 'serve jquery' | ||
|
||
@get "/": -> | ||
@render 'index' | ||
|
||
@client -> | ||
console.log "Hello, I will run on every page" | ||
|
||
@client namespaced: -> | ||
console.log "I will run only where namespace 'namespaced' is" | ||
|
||
|
||
@view index: -> | ||
div -> | ||
h1 -> "Hello, node-pile in Zappa!" | ||
|
||
@css ''' | ||
h1 { | ||
color: blue; | ||
} | ||
''' | ||
|
||
@view layout: -> | ||
doctype 5 | ||
html -> | ||
head -> | ||
title "Hello Assets" | ||
@renderStyleTags() + @renderScriptTags("namespaced") | ||
body @body |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"socket.io": "0.8.4", | ||
"coffeekup": "0.3.1", | ||
"node-uuid": "1.2.0", | ||
"uglify-js": "1.1.0" | ||
"pile": "0.2.1" | ||
}, | ||
"devDependencies": { | ||
"jsdom": "0.2.5", | ||
|
@@ -41,4 +41,4 @@ | |
"Kris Molendyke <[email protected]>", | ||
"Rafael de Oleza Alomar <[email protected]>" | ||
] | ||
} | ||
} |
This file contains 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
Oops, something went wrong.