Permalink
Browse files

Plugin define

  • Loading branch information...
1 parent 367b691 commit a47ffaf1e1936bbdc1ad0986492a33185b206e21 @kpdecker committed Oct 3, 2011
Showing with 15 additions and 0 deletions.
  1. +1 −0 index.js
  2. +14 −0 lib/stylus-images.js
View
@@ -0,0 +1 @@
+module.exports = require('./lib/stylus-images')
View
@@ -0,0 +1,14 @@
+var Scanner = require('./url-scanner'),
+ url = require('./url');
+
+function mergeUrls() {
+ new Scanner(this.root, this.imagesSeen).combine();
+ return new nodes.Expression(false);
+}
+
+module.exports = function() {
+ return function(stylus) {
+ stylus.define('url', url());
+ stylus.define('merge-urls', mergeUrls);
+ };
+};

0 comments on commit a47ffaf

Please sign in to comment.