Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Unmasking `hardcode` option in express adapter #65

Closed
wants to merge 1 commit into from

2 participants

Jason King Maurice Machado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 19, 2011
  1. Jason King
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/coffeekup.coffee
8 src/coffeekup.coffee
View
@@ -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)
Something went wrong with that request. Please try again.