Skip to content

Instantly share code, notes, and snippets.

@jonschlinkert
Last active August 29, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonschlinkert/9579914 to your computer and use it in GitHub Desktop.
Save jonschlinkert/9579914 to your computer and use it in GitHub Desktop.
Everything you need to build a complete project with Assemble v0.6.0
var assemble = require('assemble');
assemble.partials('templates/partials/*.hbs');
assemble.layouts('templates/layouts/*.hbs');
assemble.task('default', function() {
assemble.src('templates/*.hbs')
.pipe(assemble.dest('_gh_pages'))
});
<!-- add to `templates/partials/button.hbs` -->
<button>Click me!</button>
---
title: Home
description: Welcome to our home page!
---
<!-- add to `templates/index.hbs` -->
<h1>Title</h1>
{{description}}
<!-- add to `templates/layouts/layout.hbs` -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{title}}</title>
</head>
<body>
<div class="container">
{% body %}
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment