mikesmullin / coffee-templates

Fastest Minimalist CoffeeScript/JavaScript CoffeeCup/Handlebars/Mustache template engine.
48 stars 9 forks source link

Add an express adapter #4

Closed adriantoine closed 11 years ago

adriantoine commented 11 years ago

Hi!

Coffee-templates looks very interesting but I wasn't able to integrate it into my zappajs server.

In the coffeecup documentation it is explained how to use it as a rendering engine in express and zappa. I haven't found any adapter in coffee-templates to integrate it inside express. If such adapter doesn't exist, it should be created, if it does, it should be documented.

What do you think?

mikesmullin commented 11 years ago

@Alshten: great idea. start with these:

https://github.com/mikesmullin/coffee-shop/blob/stable/skeleton/precompile/server.js.coffee#L34

https://github.com/mikesmullin/coffee-shop/blob/stable/skeleton/Cakefile#L78

mikesmullin commented 11 years ago

@Alshten you may also be interested in teacup https://github.com/goodeggs/teacup

mikesmullin commented 11 years ago

added https://github.com/mikesmullin/coffee-templates/blob/stable/coffee/coffee-templates-express.coffee