Skip to content

Commit

Permalink
Rename project/package to express-handlebars
Browse files Browse the repository at this point in the history
Closes #65
  • Loading branch information
ericf committed Aug 7, 2014
1 parent 7d738e0 commit b3e61ba
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 49 deletions.
47 changes: 25 additions & 22 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Express3 Handlebars Change History
==================================
Express Handlebars Change History
=================================

NEXT
----

* __[!]__ Renamed to: `express-handlebars`. ([#65][])

* __[!]__ Rewritten to use Promises instead of `async` for asynchronous code.
([#68][]) This resulted in the following public API changes:

Expand Down Expand Up @@ -36,12 +38,13 @@ NEXT
* Updated examples to each be self-contained and have `package.json` files.


[#39]: https://github.com/ericf/express3-handlebars/issues/39
[#41]: https://github.com/ericf/express3-handlebars/issues/41
[#59]: https://github.com/ericf/express3-handlebars/issues/59
[#62]: https://github.com/ericf/express3-handlebars/issues/62
[#68]: https://github.com/ericf/express3-handlebars/issues/68
[#70]: https://github.com/ericf/express3-handlebars/issues/70
[#39]: https://github.com/ericf/express-handlebars/issues/39
[#41]: https://github.com/ericf/express-handlebars/issues/41
[#59]: https://github.com/ericf/express-handlebars/issues/59
[#62]: https://github.com/ericf/express-handlebars/issues/62
[#65]: https://github.com/ericf/express-handlebars/issues/65
[#68]: https://github.com/ericf/express-handlebars/issues/68
[#70]: https://github.com/ericf/express-handlebars/issues/70


0.5.1 (2014-08-05)
Expand All @@ -55,8 +58,8 @@ NEXT
([#51][] @calvinmetcalf)


[#30]: https://github.com/ericf/express3-handlebars/issues/30
[#51]: https://github.com/ericf/express3-handlebars/issues/51
[#30]: https://github.com/ericf/express-handlebars/issues/30
[#51]: https://github.com/ericf/express-handlebars/issues/51


0.5.0 (2013-07-25)
Expand All @@ -81,10 +84,10 @@ NEXT
being invoked. ([#27][])


[#20]: https://github.com/ericf/express3-handlebars/issues/20
[#21]: https://github.com/ericf/express3-handlebars/issues/21
[#22]: https://github.com/ericf/express3-handlebars/issues/22
[#27]: https://github.com/ericf/express3-handlebars/issues/27
[#20]: https://github.com/ericf/express-handlebars/issues/20
[#21]: https://github.com/ericf/express-handlebars/issues/21
[#22]: https://github.com/ericf/express-handlebars/issues/22
[#27]: https://github.com/ericf/express-handlebars/issues/27


0.4.1 (2013-04-06)
Expand Down Expand Up @@ -122,7 +125,7 @@ NEXT
to override. ([#14][])


[#14]: https://github.com/ericf/express3-handlebars/issues/14
[#14]: https://github.com/ericf/express-handlebars/issues/14


0.3.2 (2013-02-20)
Expand All @@ -139,7 +142,7 @@ NEXT
`renderView()` docs. ([#7][])


[#7]: https://github.com/ericf/express3-handlebars/issues/7
[#7]: https://github.com/ericf/express-handlebars/issues/7


0.3.0 (2013-02-18)
Expand All @@ -158,8 +161,8 @@ NEXT
differ between Handlebars releases.


[#3]: https://github.com/ericf/express3-handlebars/issues/3
[#11]: https://github.com/ericf/express3-handlebars/issues/11
[#3]: https://github.com/ericf/express-handlebars/issues/3
[#11]: https://github.com/ericf/express-handlebars/issues/11


0.2.3 (2013-02-13)
Expand All @@ -171,7 +174,7 @@ NEXT
This hack will only be applied to old versions of Handlebars. ([#9][])


[#9]: https://github.com/ericf/express3-handlebars/issues/9
[#9]: https://github.com/ericf/express-handlebars/issues/9


0.2.2 (2013-02-04)
Expand Down Expand Up @@ -209,9 +212,9 @@ NEXT
methods to prevent trying to render with precompiled templates. ([#2][])


[#1]: https://github.com/ericf/express3-handlebars/issues/1
[#2]: https://github.com/ericf/express3-handlebars/issues/2
[#5]: https://github.com/ericf/express3-handlebars/issues/5
[#1]: https://github.com/ericf/express-handlebars/issues/1
[#2]: https://github.com/ericf/express-handlebars/issues/2
[#5]: https://github.com/ericf/express-handlebars/issues/5


0.1.2 (2013-01-10)
Expand Down
38 changes: 21 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
Express3 Handlebars
===================
Express Handlebars
==================

A [Handlebars][] view engine for [Express][] which doesn't suck.

[![npm version](https://img.shields.io/npm/v/express3-handlebars.svg?style=flat)][npm]
[![dependency status](https://img.shields.io/david/ericf/express3-handlebars.svg?style=flat)][dep-status]
[![npm version](https://img.shields.io/npm/v/express-handlebars.svg?style=flat)][npm]
[![dependency status](https://img.shields.io/david/ericf/express-handlebars.svg?style=flat)][dep-status]

**This package used to be named `express3-handlebars`. The previous
`express-handlebars` package by @jneen can be found [here][jneen-exphbs].**


[Express]: https://github.com/visionmedia/express
[Handlebars]: https://github.com/wycats/handlebars.js
[npm]: https://www.npmjs.org/package/express3-handlebars
[dep-status]: https://david-dm.org/ericf/express3-handlebars
[npm]: https://www.npmjs.org/package/express-handlebars
[dep-status]: https://david-dm.org/ericf/express-handlebars
[jneen-exphbs]: https://github.com/jneen/express-handlebars


## Goals & Design
Expand Down Expand Up @@ -79,7 +83,7 @@ helpers.
Install using npm:

```shell
$ npm install express3-handlebars
$ npm install express-handlebars
```


Expand Down Expand Up @@ -110,7 +114,7 @@ Handlebars view engine using this package.

```javascript
var express = require('express'),
exphbs = require('express3-handlebars');
exphbs = require('express-handlebars');

var app = express();

Expand Down Expand Up @@ -172,7 +176,7 @@ Another way to use this view engine is to create an instance(s) of

```javascript
var express = require('express'),
exphbs = require('express3-handlebars');
exphbs = require('express-handlebars');

var app = express(),
hbs = exphbs.create({ /* config */ });
Expand Down Expand Up @@ -257,7 +261,7 @@ render-level.

```javascript
var express = require('express'),
exphbs = require('express3-handlebars');
exphbs = require('express-handlebars');

var app = express();

Expand Down Expand Up @@ -322,7 +326,7 @@ Refer to the [Handlebars website][] for more information on defining helpers:
* [Block Helpers][]


[examples directory]: https://github.com/ericf/express3-handlebars/tree/master/examples
[examples directory]: https://github.com/ericf/express-handlebars/tree/master/examples
[view cache setting]: http://expressjs.com/api.html#app-settings
[Express locals]: http://expressjs.com/api.html#app.locals
[registered with Handlebars]: https://github.com/wycats/handlebars.js/#registering-helpers
Expand All @@ -341,7 +345,7 @@ creating `ExpressHandlebars` instances; both use the same configuration
properties and defaults.

```javascript
var exphbs = require('express3-handlebars');
var exphbs = require('express-handlebars');

// Using the engine factory:
exphbs({ /* config */ });
Expand Down Expand Up @@ -369,7 +373,7 @@ for views:

```javascript
var express = require('express'),
exphbs = require('express3-handlebars');
exphbs = require('express-handlebars');

var app = express();

Expand Down Expand Up @@ -473,7 +477,7 @@ views
`getPartials()` would produce the following result:

```javascript
var hbs = require('express3-handlebars').create();
var hbs = require('express-handlebars').create();

hbs.getPartials().then(function (partials) {
console.log(partials);
Expand Down Expand Up @@ -625,8 +629,8 @@ Advanced Usage example demonstrates how to use an `ExpressHandlebars` instance
to share templates with the client, among other features.


[Basic Usage]: https://github.com/ericf/express3-handlebars/tree/master/examples/basic
[Advanced Usage]: https://github.com/ericf/express3-handlebars/tree/master/examples/advanced
[Basic Usage]: https://github.com/ericf/express-handlebars/tree/master/examples/basic
[Advanced Usage]: https://github.com/ericf/express-handlebars/tree/master/examples/advanced


License
Expand All @@ -636,4 +640,4 @@ This software is free to use under the Yahoo! Inc. BSD license.
See the [LICENSE file][] for license text and copyright information.


[LICENSE file]: https://github.com/ericf/express3-handlebars/blob/master/LICENSE
[LICENSE file]: https://github.com/ericf/express-handlebars/blob/master/LICENSE
2 changes: 1 addition & 1 deletion examples/advanced/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "express3-handlebars-advanced-example",
"name": "express-handlebars-advanced-example",
"version": "0.0.0",
"description": "",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions examples/advanced/server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var express = require('express'),
exphbs = require('../../'), // "express3-handlebars"
exphbs = require('../../'), // "express-handlebars"
helpers = require('./lib/helpers');

var app = express();
Expand Down Expand Up @@ -96,5 +96,5 @@ app.get('/echo/:message?', exposeTemplates, function (req, res) {
app.use(express.static('public/'));

app.listen(3000, function () {
console.log('express3-handlebars example server listening on: 3000');
console.log('express-handlebars example server listening on: 3000');
});
2 changes: 1 addition & 1 deletion examples/basic/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "express3-handlebars-basic-example",
"name": "express-handlebars-basic-example",
"version": "0.0.0",
"description": "",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions examples/basic/server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var express = require('express'),
exphbs = require('../../'); // "express3-handlebars"
exphbs = require('../../'); // "express-handlebars"

var app = express();

Expand All @@ -13,5 +13,5 @@ app.get('/', function (req, res) {
});

app.listen(3000, function () {
console.log('express3-handlebars example server listening on: 3000');
console.log('express-handlebars example server listening on: 3000');
});
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "express3-handlebars",
"name": "express-handlebars",
"description": "A Handlebars view engine for Express which doesn't suck.",
"version": "0.5.1",
"homepage": "https://github.com/ericf/express3-handlebars",
"homepage": "https://github.com/ericf/express-handlebars",
"keywords": [
"express",
"express3",
Expand All @@ -18,10 +18,10 @@
},
"repository": {
"type": "git",
"url": "git://github.com/ericf/express3-handlebars.git"
"url": "git://github.com/ericf/express-handlebars.git"
},
"bugs": {
"url": "https://github.com/ericf/express3-handlebars/issues"
"url": "https://github.com/ericf/express-handlebars/issues"
},
"engines": {
"node": ">=0.8"
Expand Down

0 comments on commit b3e61ba

Please sign in to comment.