Kevin Decker
b5f03c95ab
Merge pull request #870 from max-b/master
...
Registering undefined partial throws exception.
2014-11-08 17:43:41 -06:00
kpdecker
d595ebc0e2
Simplify program generation logic
2014-11-08 14:36:17 -06:00
kpdecker
d47e4dd1f7
Bump test coverage
2014-11-08 14:35:23 -06:00
kpdecker
83bcbee222
Ignore unused code paths
...
We don’t want to remove these as the generic code may need it in the future, but these code paths are not triggered through the existing language constructs.
2014-11-08 14:35:23 -06:00
kpdecker
30034c75e7
Merge setupParams and setupOptions
2014-11-06 09:43:43 -06:00
kpdecker
d3bd1a523d
Simplify flushInline implementation
2014-11-05 23:23:43 -06:00
kpdecker
9665379cdc
Use terinary operator for inline appends
...
Allows for append operations to avoid breaking inline chain.
2014-11-05 22:28:12 -06:00
kpdecker
a7000f8129
Provide stubbed visitor implementation
...
Part of #889
2014-11-05 21:57:09 -06: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
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
Alex Jeng
4aab967796
Capitalization change in comments for consistency
2014-09-23 11:59:30 -07:00
Maxb
a0e2e200d9
Registering undefined partial throws exception.
2014-09-19 11:35:16 -07:00
kpdecker
1eb2b04aa1
v2.0.0
2014-09-01 21:28:59 -05:00
kpdecker
58fb258016
Cleanup var names slightly
2014-08-27 01:49:23 -05:00
kpdecker
cee52ea68f
v2.0.0-beta.1
2014-08-26 18:32:15 -05:00
kpdecker
4f01f650dc
Render false literal as “false”
...
Fixes #827
2014-08-25 23:35:43 -05:00
kpdecker
ca1486b960
Prune unused code
2014-08-25 22:39:17 -05:00
kpdecker
84342b6215
Add template isTop flag
2014-08-25 21:15:26 -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
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
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
kpdecker
ccd803ff15
Replace string value rather than add omit flag
2014-08-23 16:37:30 -05:00
kpdecker
0528b91644
Add original value tracking to ContentNode
2014-08-23 16:33:14 -05:00
kpdecker
529e2b6796
Merge branch 'refactor-parser' of github.com:mmun/handlebars.js into mmun-refactor-parser
...
Conflicts:
lib/handlebars/compiler/ast.js
spec/ast.js
src/handlebars.yy
2014-08-23 16:29:22 -05:00
kpdecker
3531e04117
Optimize replaceStack for inline methods
...
Only use case was with inline input so most of this code was unnecessary.
2014-08-23 07:43:09 -05:00
kpdecker
c3fde1c01c
Remove unnecessary stack variable from blockHelper
2014-08-23 07:42:24 -05:00
kpdecker
19ce981296
Do not flush subexpressions
...
They are no longer duplicated with the new helper calling pattern and this also introduced stack corruption issues due to improper value lookups.
Fixes #767
Fixes #768
2014-08-23 07:36:01 -05:00
kpdecker
3ce105ae89
Fix undefined handling for pathed lookups
...
Fixes #837
2014-08-15 01:45:50 -05:00
kpdecker
f2b5519e76
Strip dead code from javascript compiler
2014-08-15 00:40:07 -05:00
kpdecker
cc5de5df3c
Fix compat partial exec without data
2014-08-15 00:38:23 -05:00
kpdecker
d05245b5f5
Make depthed lookup call non-literal
...
Prevents duplicate calls from being made.
2014-08-15 00:37:57 -05:00
kpdecker
084e8fe1b7
Provide better error on unexpected template
...
Fixes #806
2014-08-15 00:06:40 -05:00
kpdecker
9f07a34955
Additional test coverage
2014-08-15 00:05:37 -05:00
kpdecker
6f22ec1e01
Remove nested function eval in blockHelperMissing
...
This only worked when a function returned a function, which was then evaluated. This seems like unexpected behavior so this was dropped.
2014-08-14 23:10:17 -05:00
kpdecker
9e3f824bf5
Fix compiler program de-duping
2014-08-14 12:27:39 -05:00
kpdecker
b94656a31f
Drop unused Compiler.disassemble method
2014-08-14 12:27:23 -05:00
kpdecker
3cea85b2b0
Drop unused DECLARE opcode
2014-08-14 12:27:02 -05:00
kpdecker
4d0e3c98eb
Drop unused registerHelper inverse parameter
2014-08-14 12:25:58 -05:00
kpdecker
cb22ee5681
Increase test coverage a touch
2014-08-14 12:25:35 -05:00
kpdecker
9f8110fe15
Implement partial recursive lookup
2014-08-14 00:29:25 -05:00
kpdecker
0edce6e1d1
Inherit compat flag for partials
2014-08-14 00:29:25 -05:00
kpdecker
c98613b711
Implement recursive field lookup in compat mode
...
Provides the mustache behavior of recursive lookup without the use of depthed paths.
Note that this does incur a fairly dramatic performance penalty for depthed queries.
2014-08-13 20:46:42 -05:00
kpdecker
625b00e1da
Avoid depth construction overhead for non-depthed
2014-08-13 14:51:33 -05:00
kpdecker
b695aaec7c
Use depths array rather than passing array args
...
Approximately doubles the throughput performance of depthed templates and clears the way for doing recursive path lookups in pathed mode.
2014-08-13 14:11:53 -05:00