akdubya / dustjs

Asynchronous templates for the browser and node.js
http://akdubya.github.com/dustjs/
MIT License
1.44k stars 124 forks source link

Enable "compileFn" like functionality for already-compiled functions. #42

Open jamon opened 12 years ago

jamon commented 12 years ago

dust.compileFn is incredibly useful, but only accepts uncompiled source. It would be incredibly helpful to be able to pass in already-compiled source for it to wrap.

It doesn't appear that there's a way to do this without modifying the source, because the "Stub" class is internal/inaccessible.