From d7be19b35669d260c40d931773ef4d50f765d13e Mon Sep 17 00:00:00 2001 From: David Glasser Date: Tue, 9 Jun 2015 00:04:08 -0700 Subject: [PATCH] comments about other registerSourceHandler calls --- packages/stylus/plugin/compile-stylus.js | 3 +++ packages/templating/plugin/compile-templates.js | 1 + 2 files changed, 4 insertions(+) diff --git a/packages/stylus/plugin/compile-stylus.js b/packages/stylus/plugin/compile-stylus.js index 008dc556aa..3b297e943f 100644 --- a/packages/stylus/plugin/compile-stylus.js +++ b/packages/stylus/plugin/compile-stylus.js @@ -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')) diff --git a/packages/templating/plugin/compile-templates.js b/packages/templating/plugin/compile-templates.js index e8b8dbdfbf..edd4e538a6 100644 --- a/packages/templating/plugin/compile-templates.js +++ b/packages/templating/plugin/compile-templates.js @@ -43,6 +43,7 @@ var doHTMLScanning = function (compileStep, htmlScanner) { } }; +// XXX BBP rewrite to registerCompiler Plugin.registerSourceHandler( "html", {isTemplate: true, archMatching: 'web'}, function (compileStep) {