Ticket #2532315 (closed defect)

Reporter


megar
Opened: 05/15/12
Last modified: 08/1/12
Status: closed
Type: defect
Resolution: fixed

Owner


Dav Glass
Target Release: 3.6.0
Priority: P3 (normal)
Summary: Error in documentation for Handlebars
Description:

In the "Partials" section,

The line :
Y.Handlebars.registerPartial('header', '<h1>Handlebars</h1>');

should actually be:
Y.Handlebars.registerPartial('header', '<h1>{{title}}</h1>');

This shows the inheritance of the context in partials.

In the example, the partial template should renders to "<h1>My Page About Mustaches</h1>"
With the provided code, it renders to "<h1>Handlebars</h1>"

Type: defect Observed in Version: 3.5.1
Component: Documentation/Web Site Severity: S5 (trivial)
Assigned To: Dav Glass Target Release: 3.6.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL: http://yuilibrary.com/yui/docs/handlebars/
Test Information:

Change History

Dav Glass

Posted: 05/15/12
  • location changed to Library Code
  • milestone changed to 3.6.0
  • priority changed to P3 (normal)
  • status changed from new to checkedin

Checked in and deployed to the site.

Dav Glass

Posted: 05/15/12
  • resolution changed to fixed

Fixed #2532315 - Handlebars variable was not escaped
View Commit: b4e3798b859fe531c83b29806766e188dd5a95da

Jenny Donnelly

YUI Developer

Posted: 08/1/12
  • status changed from checkedin to closed

Shipped in 3.6.0. Marking closed/fixed.