Closed ahawkins closed 11 years ago
@wycats I gave this a little more thought: do you think it's better to have a separate filter or modify this one? I don't think we need the compiler_proc option anymore. You can do everything with wrapper_proc
but it's not obvious how. Is there some way we can make this functionality more obvious?
compiler_proc
is called with the source. Thecompiler_proc
returns the source by default. You can specifycompiler_proc
if you want to preprocess the source before it hitswrapper_proc
.compiler_proc
andwrapper_proc
can be set in coordination to do Handlebars precompilation. Here's an example.I've also updated the docs in this PR.