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
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
35b196d069
Merge branch 'mmun-refactor-parser'
2014-08-23 16:29:50 -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
67b3f40eb2
Merge branch 'evensoul-master'
2014-08-23 07:36:16 -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
Marko Zabcic
f4b8c5260c
added test multiple subexpressions in a hash with context
2014-08-23 06:56:22 -05:00
Kevin Decker
cf343a1949
Merge pull request #849 from wycats/helper-undefined
...
Fix undefined handling for pathed lookups
2014-08-15 02:07:24 -05:00
kpdecker
3ce105ae89
Fix undefined handling for pathed lookups
...
Fixes #837
2014-08-15 01:45:50 -05:00
kpdecker
ae44e071d8
Test case for #837
2014-08-15 01:45:50 -05:00
kpdecker
2f14fa57e5
Fix/simplify tests under sauce
2014-08-15 01:02:26 -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
c71ca34fd3
Add FAQ entry for .default export
...
Fixes #824
2014-08-14 22:00:59 -05:00
kpdecker
85b67d7f3d
Use public url for spec submodule
2014-08-14 12:31:01 -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
9ab31e1fc6
Add istanbul code coverage
2014-08-14 01:11:55 -05:00
kpdecker
1bd8d38c3c
Update compatibility documentation
...
Provides an official statement regarding the issues discussed in #425
2014-08-14 00:48:19 -05:00
kpdecker
59607aa9ab
Add mustache spec to tests
2014-08-14 00:48:19 -05:00
Kevin Decker
48263be204
Merge pull request #848 from wycats/recursive-partial
...
Implement partial recursive lookup
2014-08-14 00:48:01 -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
Kevin Decker
d95725d5fd
Merge pull request #819 from wycats/compat-mode
...
Implement recursive field lookup
2014-08-13 21:14:32 -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