This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ejs = require('gulp-ejs-precompiler'); | |
var concat = require('gulp-concat'); | |
var gulp = require('gulp'); | |
var insert = require('gulp-insert'); | |
gulp.task('default', function() { | |
return gulp.src("./app/templates/*.ejs") | |
.pipe(ejs({ | |
compileDebug: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var urlLib = require('url'); | |
function UrlAdapter(urlString) { | |
this.urlObj = urlLib.parse(urlString, true); | |
// XXX remove the search property to force format() to use the query object when transforming the url object to a string | |
delete this.urlObj.search; | |
} | |
exports.UrlAdapter = UrlAdapter; |