comments about other registerSourceHandler calls

This commit is contained in:
David Glasser
2015-06-09 00:04:08 -07:00
parent cef1a77691
commit d7be19b356
2 changed files with 4 additions and 0 deletions

View File

@@ -4,6 +4,9 @@ var nib = Npm.require('nib');
var path = Npm.require('path');
var Future = Npm.require('fibers/future');
// XXX BBP probably rewrite to registerCompiler even if we can't implement
// good @imports because stylus doesn't let you override @import processing.
// (maybe deprecate this package? put out a call for PRs?)
Plugin.registerSourceHandler("styl", {archMatching: 'web'}, function (compileStep) {
var f = new Future;
stylus(compileStep.read().toString('utf8'))

View File

@@ -43,6 +43,7 @@ var doHTMLScanning = function (compileStep, htmlScanner) {
}
};
// XXX BBP rewrite to registerCompiler
Plugin.registerSourceHandler(
"html", {isTemplate: true, archMatching: 'web'},
function (compileStep) {