diet-coffee 0.1.0

Diet filter plugin for coffescript.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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

  • 185 downloads total