Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add page property to non-component pages, set to true.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrove committed Jul 14, 2011
1 parent cebf652 commit e4a6cea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions HISTORY.md
@@ -1,6 +1,13 @@
Selleck History
===============

0.1.5 (git)
-----------

* Views for non-component and non-example pages now have a boolean `page`
property that's set to `true` (examples similarly have an `example` property).


0.1.4 (2011-06-28)
------------------

Expand Down
1 change: 1 addition & 0 deletions lib/view/index.js
Expand Up @@ -25,6 +25,7 @@ function View(data, templateName) {
// If the name of the current template matches the name of a page
// with custom metadata, mix the page's metadata into the view.
if (this.pages[this.templateName]) {
this.page = true;
util.mix(this, this.pages[this.templateName]);
}
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
@@ -1,13 +1,13 @@
{
"name" : "selleck",
"description": "Generator for YUI's mustache-based user documentation.",
"description": "Generator for YUI's Handlebars-based user documentation.",

"version" : "0.1.4",
"version" : "0.1.5-git",
"homepage" : "https://github.com/rgrove/selleck/",
"author" : "Ryan Grove <ryan@wonko.com> (http://wonko.com/)",
"copyright" : "Copyright (c) 2011 Yahoo! Inc. All rights reserved.",

"keywords" : ["yui", "mustache", "docs", "documentation"],
"keywords" : ["yui", "handlebars", "mustache", "docs", "documentation"],

"licenses": [
{"type": "BSD", "url": "http://developer.yahoo.com/yui/license.html"}
Expand Down

0 comments on commit e4a6cea

Please sign in to comment.