kriswallsmith/assetic — pull request #174 by AntonStoeckl (2012-01-24 15:52:36+00:00)
Title: added a NodejsFilter

Hi Kris,

I have just added a very simple filter to be able to execute files with nodejs: NodejsFilter.php

It works different than the other "real" filters, as it does not work on the content of an asset but uses the file path - this is due to the nature of nodejs which does not accept code from std (or I could not find out how to do that). So it builds a command like: /usr/bin/node input_file.js

We're using it with "stitch" to compile a .js file from many assets but the filter should be capable of doing anything with nodejs that either creates files or outputs code directly.

This is my first pull request in github, so I hope I did not miss anything. ;-)

Regards, Anton