Skip to content
Browse files

Add `page` property to non-component pages, set to `true`.

  • Loading branch information...
1 parent cebf652 commit e4a6cea41851e1fe99e5aaff67f7b8b3eff84399 @rgrove committed Jul 14, 2011
Showing with 11 additions and 3 deletions.
  1. +7 −0 HISTORY.md
  2. +1 −0 lib/view/index.js
  3. +3 −3 package.json
View
7 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)
------------------
View
1 lib/view/index.js
@@ -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]);
}
}
View
6 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"}

0 comments on commit e4a6cea

Please sign in to comment.
Something went wrong with that request. Please try again.