From d8946fca74a64892551212b1a0ab7ab73dea5a57 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 15 Aug 2016 18:03:26 +0300 Subject: [PATCH] added support for .md extension in bootstrap -- for bettur support for github links... Signed-off-by: Alex A. Naanou --- bootstrap/{WikiMacros.tpl => WikiMacros.md} | 0 bootstrap/{WikiPath.tpl => WikiPath.md} | 0 make_bootstrap.js | 5 +++-- 3 files changed, 3 insertions(+), 2 deletions(-) rename bootstrap/{WikiMacros.tpl => WikiMacros.md} (100%) rename bootstrap/{WikiPath.tpl => WikiPath.md} (100%) diff --git a/bootstrap/WikiMacros.tpl b/bootstrap/WikiMacros.md similarity index 100% rename from bootstrap/WikiMacros.tpl rename to bootstrap/WikiMacros.md diff --git a/bootstrap/WikiPath.tpl b/bootstrap/WikiPath.md similarity index 100% rename from bootstrap/WikiPath.tpl rename to bootstrap/WikiPath.md diff --git a/make_bootstrap.js b/make_bootstrap.js index 04c8675..66839a0 100644 --- a/make_bootstrap.js +++ b/make_bootstrap.js @@ -12,11 +12,12 @@ var glob = require('glob') var bootstrap = {} -glob('bootstrap/**/*.tpl') +// XXX add support for json... +glob('bootstrap/**/*.@(tpl|md)') .on('match', function(path){ var p = path .replace('bootstrap/', '') - .replace('.tpl', '') + .replace(/.tpl|.md/, '') if(p)