Martin Muñoz
a5d0491d57
Remove RawBlockNode in favor of prepareRawBlock helper
2014-11-05 11:00:39 -05:00
Martin Muñoz
12e3d210e8
Simplify BlockNode by removing intermediate MustacheNode
2014-11-02 18:19:20 -05:00
kpdecker
632fadcea3
Add preventIndent option for partials
...
This disables the standalone partial indent behavior required by the Mustache spec and allows for users to utilize partials in the same manner as under 1.x.
Fixes #858
2014-11-02 12:19:56 -06:00
kpdecker
7c220b9af5
Add test for whitespace control w/ partial indent
...
Verifies the behaviors discussed in #858
2014-11-02 12:09:37 -06:00
kpdecker
f30b3ea329
Allow whitespace control on comments
...
This changes the call signature for the CommentNode constructor, which is a potentially breaking change for AST users.
Fixes #866
2014-11-02 11:55:52 -06:00
kpdecker
9fbf7aa753
Fix help message for CLI
...
Fixes #895
2014-11-02 11:08:42 -06:00
Kevin Decker
3e1840a75d
Merge pull request #874 from ogwiz2/patch-1
...
Capitalization change in comments for consistency
2014-10-27 23:12:25 -05:00
kpdecker
4282668d47
Implement parser for else chaining of helpers
...
Allows users to chain multiple helpers together using their inverse callbacks. I.e.
```
{{#if foo}}
{{else if bar}}
{{else}}
{{/if}}
```
The control flow here effectively causes the helpers to be nested. The above is actually syntactic sugar for this:
```
{{#if foo}}
{{else}}
{{#if bar}}
{{else}}
{{/if}}
{{/if}}
```
Any helper may be used in this manner, the only requirement is they support normal calls and inverse calls.
Introduces a breaking change in that `{{else foo}}` may no longer be used as a root level operator. Instead `{{^foo}}` must be used.
Fixes #72 .
2014-10-27 19:17:16 -05:00
Alex Jeng
4aab967796
Capitalization change in comments for consistency
2014-09-23 11:59:30 -07:00
Maxb
b87e601063
Fixing indentation in spec/partials.js
2014-09-19 11:46:02 -07:00
Maxb
a0e2e200d9
Registering undefined partial throws exception.
2014-09-19 11:35:16 -07:00
Kevin Decker
3133af2a21
Merge pull request #869 from jonsadka/patch-1
...
Update FAQ.md
2014-09-19 01:02:40 -05:00
Jon Sadka
5fe7ef63d8
Update FAQ.md
...
Fixed misspelling of sufficent to sufficient on Line 60
2014-09-18 22:08:51 -07:00
tomByrer
62ed555b2c
+ jsDelivr CDN info
...
Thanks to libgrabber, every time a [new release is posted](https://github.com/components/handlebars.js/releases ), jsDelivr will find it & automatically upload it. If you change your file structure, please updated the [include section](https://github.com/jsdelivr/jsdelivr/blob/master/files/handlebarsjs/update.json ) or ask us to do it.
I was going to link CDNJS, but they [haven't uploaded to v2.0.0](http://cdnjs.com/libraries/handlebars.js ). Nothing against those cats; we [use their network](http://www.jsdelivr.com/network.php ).
2014-09-06 08:08:23 -06:00
kpdecker
8aa2a34a8d
Update jsfiddle link
2014-09-02 00:14:10 -05:00
kpdecker
aaa590d846
Fix non-prerelease handling for gemspec
2014-09-01 21:42:45 -05:00
kpdecker
1eb2b04aa1
v2.0.0
v2.0.0
2014-09-01 21:28:59 -05:00
kpdecker
2e75199664
Update release notes
2014-09-01 21:28:51 -05:00
kpdecker
0670f656fb
Update jsfiddle to 2.0.0-beta.1
2014-08-27 09:27:57 -05:00
kpdecker
4d17e3c209
Add contrib note regarding handlebarsjs.com docs
2014-08-27 01:49:52 -05:00
kpdecker
58fb258016
Cleanup var names slightly
2014-08-27 01:49:23 -05:00
kpdecker
ed3ae9af59
Drop cdnjs release step
2014-08-26 19:38:40 -05:00
kpdecker
64d5481c00
Play nice with gemspec version numbers
2014-08-26 19:38:32 -05:00
kpdecker
cee52ea68f
v2.0.0-beta.1
v2.0.0-beta.1
2014-08-26 18:32:15 -05:00
kpdecker
d33b362d97
Update release notes
2014-08-26 18:27:11 -05:00
Kevin Decker
c5acea75aa
Update FAQ.md
2014-08-25 23:37:40 -05:00
kpdecker
4f01f650dc
Render false literal as “false”
...
Fixes #827
2014-08-25 23:35:43 -05:00
kpdecker
3c869866c8
Update FAQ with comment on UMD vs. AMD build
...
Fixes #796
2014-08-25 22:55:05 -05:00
kpdecker
ca1486b960
Prune unused code
2014-08-25 22:39:17 -05:00
kpdecker
dfca676d63
Fix test path
2014-08-25 22:39:01 -05:00
kpdecker
09d3c74c7f
Convert build to expose UMD from the default files
2014-08-25 22:06:15 -05:00
kpdecker
c98147b31f
Move uglify include past conditional
2014-08-25 22:05:38 -05:00
kpdecker
b41459055a
Expose default compatibility wrapper for umd build
2014-08-25 22:04:11 -05:00
kpdecker
84342b6215
Add template isTop flag
2014-08-25 21:15:26 -05:00
kpdecker
24d63b6966
Update Ember testing instructions
2014-08-25 21:14:56 -05:00
kpdecker
36f00db073
Fix compiler version tag
2014-08-25 21:13:31 -05:00
kpdecker
64f422b57f
Rev runtime version
2014-08-25 13:49:20 -05:00
kpdecker
dc9a2ed7eb
Refactor content blocks to ignore lines
...
We can simplify our previous standalone determination logic by merging content blocks again.
Fixes #854
2014-08-25 13:27:28 -05:00
kpdecker
980c38cebf
Expose escapeExpression on the root object
2014-08-25 00:34:19 -05:00
kpdecker
31f6fd7131
Merge mustache compatibility sections
2014-08-25 00:34:05 -05:00
kpdecker
c9886fdc0f
FAQ tweaks
2014-08-25 00:33:46 -05:00
kpdecker
501a640330
Allow passing depths to _child
2014-08-25 00:32:57 -05:00
kpdecker
477a26913a
Optimize compiler opcode call
2014-08-24 18:16:11 -05:00
kpdecker
4ce474d3e4
Update issue filing guidelines
2014-08-24 15:56:27 -05:00
kpdecker
3e6bf8b0f6
Link to current performance tests in readme
2014-08-24 15:45:10 -05:00
kpdecker
e5aeca648a
Create CONTRIBUTING.md
...
Cleans up some of the process focused content in the README and also adds nice message to github issue tracker, etc.
2014-08-24 15:28:22 -05:00
kpdecker
2b3fdf7ea8
Additional test coverage cleanup
...
Also fixes the template._child implementation which broke with the depthed work.
2014-08-23 18:52:30 -05:00
kpdecker
0c7c37df6a
Restore helperMissing for ambiguous statements
...
Fixes #318 (regression)
Partial fix for #783
2014-08-23 18:26:57 -05:00
kpdecker
cde008b49f
Cleanup from code coverage report
2014-08-23 17:44:45 -05:00
kpdecker
84d646bb5d
Move strip processing into AST helper logic
...
We already have to track these behaviors for the standalone parsing and rather than having two whitespace pruning implementations this moves all of the behavior into one place.
Fixes #852
2014-08-23 17:44:20 -05:00