Skip to content

Instantly share code, notes, and snippets.

View ssethubalan's full-sized avatar
🎯
Focusing

ssethubalan

🎯
Focusing
View GitHub Profile
@ssethubalan
ssethubalan / .babelrc
Created February 3, 2017 05:57
Example of rollup building a react bundle with a custom component
{
"presets": ["es2015-rollup", "react"]
}
var gulp = require('gulp');
var htmlmin = require('gulp-htmlmin');
var extname = require('gulp-extname');
var assemble = require('assemble');
var app = assemble();
app.helpers('/helpers/*.js');
gulp.task('load', function(cb) {
app.partials('test/fixtures/includes/*.hbs');
app.layouts('test/fixtures/layouts/*.hbs');
@ssethubalan
ssethubalan / gist:c3e7866c7de6564de2db
Created January 27, 2016 00:04
Test Handlebar file
---
title: Example
---
<h1>{{site.title}}</h1>
<h2>{{title}}</h2>
{{!debug example}}
<pre>{{foo}}</pre>
{{#is title 'Example'}}