Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit 16c2f72

Browse files
committed
cleanup and comments
1 parent 70430b6 commit 16c2f72

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/engine_handlebars.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
* Full. Partial calls and lineage hunting are supported. Handlebars does not
1515
* support the mustache-specific syntax extensions, style modifiers and pattern
1616
* parameters, because their use cases are addressed by the core Handlebars
17-
* feature set.
17+
* feature set. It also does not support verbose partial syntax, because it
18+
* seems like it can't tolerate slashes in partial names. But honestly, did you
19+
* really want to use the verbose syntax anyway? I don't.
1820
*
1921
*/
2022

@@ -45,8 +47,11 @@ var engine_handlebars = {
4547
},
4648

4749
registerPartial: function (pattern) {
48-
pattern.patternPartial = pattern.patternPartial.replace('-_', '-');
50+
// register exact partial name
4951
Handlebars.registerPartial(pattern.patternPartial, pattern.template);
52+
53+
// register verbose syntax? No, it seems that Handlebars can't tolerate
54+
// slashes in partial names.
5055
},
5156

5257
// find and return any {{> template-name }} within pattern

0 commit comments

Comments
 (0)