This file contains 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
/node_modules | |
/node_modules/.bin | |
/node_modules/assemble | |
/node_modules/assemble-contrib-anchors | |
/node_modules/assemble-contrib-decompress | |
/node_modules/assemble-contrib-download | |
/node_modules/assemble-contrib-permalinks | |
/node_modules/assemble-less | |
/node_modules/chalk | |
/node_modules/cheerio |
This file contains 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 expects = function(config, spec) { | |
for(var k in spec) { | |
if (config[k] === 'undefined') { | |
config[k] = spec[k]; | |
} | |
} | |
}; | |
var spec = { |
This file contains 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
const findup = require('findup-sync'); | |
const koalas = require('koalas'); | |
module.exports = function (search, paths) { | |
var find = function (path) { | |
return findup(search, {cwd: path, nocase: true}); | |
}; | |
return koalas.apply(null, paths).use(find).value(); | |
}; |
I hereby claim:
- I am doowb on github.
- I am doowb (https://keybase.io/doowb) on keybase.
- I have a public key whose fingerprint is 6A11 A0F5 F69C A7E8 8FAE 178E 928A A2F2 AB9B EF4B
To claim this, I am signing this object:
This file contains 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 data = [ | |
{ | |
'Sellside.foo': ['path/to/foo-data.json'], | |
'Sellside.bar': ['path/to/bar-data.json'] | |
} | |
]; | |
var results = { | |
Sellside: { | |
foo: { /* foo-data.json */ }, |
This file contains 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
module.exports = function (assemble) { | |
var plugin = function (params, next) { | |
// do something | |
next(); | |
}; | |
plugin.options = { | |
event: 'page:before:render' | |
}; | |
return { |
This file contains 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 normalize = require('normalize-config'); | |
var plasma = require('plasma'); | |
var _ = require('lodash'); | |
function Assemble (config) { | |
// normalize the config object | |
this.config = normalize(config); | |
// store a reference to the config options on assemble |
This file contains 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 Assemble = require('assemble'); | |
var Permalinks = require('assemble-permalinks'); | |
var siteConfig = { | |
options: { | |
assets: '_gh_pages/public/', | |
layout: 'default', | |
ext: '.html', | |
}, | |
src: 'src/templates/pages/*.hbs', |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script type="text/x-handlebars" id="tmpl"> |
OlderNewer