diet-coffee ~master

Diet filter plugin for coffescript.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Diet plugin for CoffeeScript

Compiles CoffeeScript in Diet templates to JavaScript and caches the result.

Usage

To register the plugin you have to import diet_coffee; in your application.

import vibe.d;
import diet_coffee;

//...

void hello(HTTPServerRequest req, HTTPServerResponse res)
{
    res.render!"coffee.dt"();
}

Now you can use the :coffee textfilter in your diet files.

doctype html
html
  head
    title Hello, CoffeeScript
  body
    :coffee
      window.onload = -> alert document.title

See example for a complete vibe.d app.

Authors:
  • Martin Nowak
Dependencies:
vibe-d
Versions:
0.1.0 2014-Oct-06
~master 2014-Oct-06
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 199 downloads total

Score:
1.1
Short URL:
diet-coffee.dub.pm