Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Unmask `hardcode` in express adapter, fixes #64

Signed-off-by: mauricemach <maurice@bitbending.com>
  • Loading branch information...
commit e903ee6341900f58cf640a38986bc63990cdcef6 1 parent 59c6701
@smathy smathy authored committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/coffeekup.coffee
View
8 src/coffeekup.coffee
@@ -16,7 +16,7 @@ else
coffeekup = exports
coffee = require 'coffee-script'
-coffeekup.version = '0.3.0beta2'
+coffeekup.version = '0.3.0beta3'
# Values available to the `doctype` function inside a template.
# Ex.: `doctype 'strict'`
@@ -313,7 +313,7 @@ unless window?
# Allows `partial 'foo'` instead of `text @partial 'foo'`.
express:
compile: (template, data) ->
- data.hardcode =
- partial: ->
+ data.hardcode ?= {}
+ data.hardcode.partial = ->
text @partial.apply @, arguments
- coffeekup.compile(template, data)
+ coffeekup.compile(template, data)
Please sign in to comment.
Something went wrong with that request. Please try again.