Permalink
Browse files

Jade compiler now supports includes.

Also supports template inheritance.
  • Loading branch information...
1 parent 081d634 commit 9f1a3a348bc5457e94a57c282f76560659dd186a @meowgorithm committed May 24, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 lib/cakewalk.js
View
@@ -123,8 +123,14 @@ function JadeBuilder(source, destination) {
var builder = new Builder(source, destination, function(input) {
try {
return jade.compile(input, {
- pretty: true
- // TODO add proper support for the filename directive (necessary for includes)
+
+ // Pretty printing
+ pretty: true,
+
+ // Reference to original file. Necessary for includes and
+ // template inheritance.
+ filename: source
+
})();
} catch(err) {
throw new JadeError(err.message, source);

0 comments on commit 9f1a3a3

Please sign in to comment.