Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ @ ] Package info updated
  • Loading branch information
pnegri committed Nov 9, 2011
1 parent ebae4cd commit 5c247c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
8 changes: 6 additions & 2 deletions lib/arcabouco.coffee
Expand Up @@ -11,7 +11,7 @@ Common.Http.ServerResponse.prototype.redirectTo = ( url ) ->

Common.Http.ServerResponse.prototype.respondWith = ( content, type='text/html', status=200, expiration=0 ) ->
expirationTime = new Date()
headers =
headers =
'Content-Type': type + '; charset=utf-8'
if expiration > 0
expirationTime.setTime expirationTime.getTime() + expiration
Expand All @@ -27,8 +27,10 @@ Common.Http.ServerResponse.prototype.respondWith = ( content, type='text/html',
@write content
@end()

## START WORKING ON THIS
Template =
loadedTemplates : []
## TODO: Search for Template
getTemplate: ( templateFile ) ->
templateFile = Common.Path.basename templateFile
unless @loadedTemplates[ templateFile ]
Expand All @@ -39,7 +41,7 @@ Template =
return false
unless templateFile.match /\.haml$/gi
return false
baseTemplateFile = Common.Path.basename templateFile
baseTemplateFile = Common.Path.basename templateFile
template = Common.Fs.readFileSync templateFile, 'utf-8'
compiledTemplate = Haml.compile template
optimizedTemplate = Haml.optimize compiledTemplate
Expand All @@ -55,6 +57,8 @@ Template =
return Haml.execute layout, context, params
return content

## Register Modules???

class Arcabouco
config : {}

Expand Down
11 changes: 7 additions & 4 deletions package.json
@@ -1,7 +1,7 @@
{
"name" : "arcabouco-js",
"description" : "scalable microframework in node.js",
"version" : "0.5.2",
"version" : "0.5.333",
"author" : "Patrick Negri <patrick@iugu.com.br>",
"homepage": "http://github.com/pnegri/arcabouco-js",
"contributors" : [],
Expand All @@ -14,14 +14,17 @@
"coffee-script": ">=1.1.2",
"underscore": ">=1.2.1",
"i18n": ">=0.3.0",
"vows": ">=0.5.12",
"zombie": ">=0.10.2",
"async": ">=0.1.12",
"stylus": ">=0.19.0"
},
"devDependencies" : {
"zombie": ">=0.10.2",
"vows": ">=0.5.12"
},
"keywords" : [ "framework", "web", "footprint", "lightweight" ],
"repository" : {
"type":"git",
"url":"git://github.com/pnegri/arcabouco-js.git"
},
"engines" : { "node" : ">= 0.4.0 < 0.7.0" }
"engines" : { "node" : ">= 0.4.0 < 1.0.0" }
}

0 comments on commit 5c247c9

Please sign in to comment.