Template engine server
JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
examples
lib
.gitignore
README.markdown
TODO.markdown
package.json

README.markdown

note: under heavy development

Ghostwriter

Template engine server by JavaScript, a ghostwriter for your favorite web app framework.

Why

I think designers in your team don't want to understand #{template-engine-of-your-favorite-language}.

How to run

$ git clone git://github.com/fujimura/ghostwriter.git
$ cd ghostwriter
$ npm install . -g
$ ghostwriter -p 3000 -t ./examples

Example

$ cat examples/hello.html.ejs
Hello, my name is <%= name %>
$ curl -d '{"name":"Mad Skillz"}'          \
       -H "Content-Type: application/json" \
        http://localhost:3000/hello.html
HTTP/1.1 200 OK
X-Powered-By: Express
Content-Type: text/html; charset=utf-8
Content-Length: 29
Connection: keep-alive

Hello, my name is Mad Skillz

Licence

Ghostwriter is released under the MIT license: