Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Property compiler to easily use eco with express #19

Closed
wants to merge 1 commit into from
Closed

Property compiler to easily use eco with express #19

wants to merge 1 commit into from

Conversation

mapmarkus
Copy link

I've added a property to eco so you can declare it as a express compiler like this:

express = require 'express'
eco = require 'eco'

app = express.createServer()

app.configure ->
  app.register '.eco', eco.compiler

Should solve issue #12

      app.set 'view engine', 'echo'
      app.register '.echo', eco.compiler

Issue #12
@aseemk
Copy link

aseemk commented May 13, 2011

(Just commenting so I can get notified of updates. Thanks!)

@sstephenson
Copy link
Owner

Thanks for the patch -- I decided to change the Eco API instead in 5d62cdd, so that eco.compile is compatible with what Express expects.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants