Skip to content

Commit

Permalink
Removed @require, it won't work. Need to find something else for pl…
Browse files Browse the repository at this point in the history
…ugins.

#38
  • Loading branch information
shimaore committed Sep 4, 2012
1 parent f5e3651 commit 554cc3f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/zappa.coffee
Expand Up @@ -286,10 +286,6 @@ zappa.app = (func,options={}) ->
sub = if typeof p is 'string' then require path.join(real_root, p) else p
sub.include.apply(context, [context])

context.require = (p,args...) ->
sub = if p[0] is '.' then require path.join(real_root, p) else require p
sub.plugin.apply context, [{context,route},args...]

apply_helpers = (ctx) ->
for name, helper of helpers
do (name, helper) ->
Expand Down

0 comments on commit 554cc3f

Please sign in to comment.