thegrandpoobah
8053051cb6
Turn interpreter into a recursive descent parser.
il y a 16 ans
thegrandpoobah
180c02e641
ignore equal signs if not forming a set delimiter
il y a 16 ans
thegrandpoobah
0831ea55b3
issue 46: change of set delimiter should also affect sections and inverted sections.
il y a 16 ans
thegrandpoobah
937c4f8a5d
partial fix for issue 48.
il y a 16 ans
thegrandpoobah
6cc86e23a1
add QUnit tests based on the examples folder.
il y a 16 ans
thegrandpoobah
a83dd64573
According to the documentation, & is also an unescaping character.
il y a 16 ans
thegrandpoobah
d6cc13834e
fix test case
il y a 16 ans
thegrandpoobah
611bae9950
Test case for Issue 46
il y a 16 ans
thegrandpoobah
27ea4e5468
fix a bug in the function includes when changing delimiters to characters that need to be escaped in regexes.
il y a 16 ans
thegrandpoobah
336d21a1a4
More spelling mistake fixes
il y a 16 ans
thegrandpoobah
b45570ebf7
current was misspelled
il y a 16 ans
thegrandpoobah
1d6337de5c
Merge with trunk
il y a 16 ans
thegrandpoobah
5f07924fd9
Add test case for a bug when using delimiters, partials, and sections together.
il y a 16 ans
Jan Lehnardt
e4ab54d524
better whitspacing, closes #41
il y a 16 ans
Jan Lehnardt
1ddda5c5f8
Allow empty-string partials.
Closes #40 .
il y a 16 ans
Jan Lehnardt
497be8d81f
update changes
il y a 16 ans
Jan Lehnardt
5c08642838
Make IMPLICIT ITERATORS a first class feature.
Closes #39 .
il y a 16 ans
Jan Lehnardt
87c7ff84bd
whitespacin’
il y a 16 ans
Jan Lehnardt
88f2e7e200
open FaQ, answer dot notation question
il y a 16 ans
thegrandpoobah
7c8b513db9
Add parameterized function support.
il y a 16 ans
thegrandpoobah
1f0c6b6241
merge with janl
il y a 16 ans
Jan Lehnardt
0b10ab0db8
Regex: \w includes "_". Thanks Leeoniya.
il y a 16 ans
Jan Lehnardt
e33d4f8bf8
whitespacin'
il y a 16 ans
Jan Lehnardt
e3911963f3
JSLint hurt my feelings.
il y a 16 ans
Jan Lehnardt
53ec2d559b
less cat
il y a 16 ans
Jan Lehnardt
7be0692b2f
pedantry
il y a 16 ans
Jan Lehnardt
2bab7be637
Less code per line, fix Rhino compat.
il y a 16 ans
Jan Lehnardt
86ed681de7
more pedantry
il y a 16 ans
Jan Lehnardt
c6fc49c783
Add package.json to CommonJS package (`rake commonjs`).
Use fancy regex to auto-fill the version number.
Closes #37 .
il y a 16 ans
Jan Lehnardt
3abfafa553
Fix typo in comment. #pedantry
il y a 16 ans
Jan Lehnardt
4466a47561
whoopsiedupecode
il y a 16 ans
Jan Lehnardt
1f0ca2fe50
Add test case for recursive partial. If it weren't for complex.html
it could be neat and there'd be s/kids/children/ — Oh well.
il y a 16 ans
Jan Lehnardt
1e7fce2e7a
Remove expensive merge() method. Context lookups for nested sections
and partials are now performed on the current context and the top-
level view object. This avoids a ton of copying and duplication of
view objects and contexts.
il y a 16 ans
Sahab Yazdani
3dd4c87e09
How embarrassing.
il y a 16 ans
endor
dd19083d5f
tests for partial recursion
il y a 16 ans
Jan Lehnardt
885501df7d
Add test case to close #11 . No bugfix necessary.
il y a 16 ans
Jan Lehnardt
4e01d9faf6
update THANKS, CHANGES
il y a 16 ans
Aaron Gibralter
53e9b2692b
Partials within list sections did not seem to be functioning
correctly. Since a list section pushes a sub-object of the
"view" into the "current" context, a partial should recognize
this altered context. The one-line change in mustache.js does
exactly this.
Closes #35 .
il y a 16 ans
Aaron Gibralter
e25eeaebb8
Allow arbitrary whitespace within tags. Closes #34 .
il y a 16 ans
Jan Lehnardt
595f3fbf35
Revert "Merge remote branch 'rbriank/master'"
This reverts commit c2f886602af6ff2d6790b33f87445fc2a5677e0e, reversing
changes made to 88d3d9cf32 .
il y a 16 ans
Jan Lehnardt
73b463a30e
Revert "fix expected output"
This reverts commit f1f55138a4 .
il y a 16 ans
Jan Lehnardt
f1f55138a4
fix expected output
il y a 16 ans
Jan Lehnardt
c2f886602a
Merge remote branch 'rbriank/master'
* rbriank/master:
simple iterator adding \n bug
il y a 16 ans
Jan Lehnardt
88d3d9cf32
fix rake commonjs part 2
il y a 16 ans
Jan Lehnardt
90f93aa7e3
fix rake commonjs
il y a 16 ans
Jan Lehnardt
a7464db373
remove lib, use rake commonjs for a commonjs package
il y a 16 ans
Jan Lehnardt
f226c0b437
Merge remote branch 'jhs/master'
* jhs/master:
Output the "Done" message as before
Actually ignore comment tags; and correct the expected output in the test case
Refactor template-style builds into a common function
Execute commands properly. You can see what's happening, and errors halt the build
Build CommonJS just like any other target, using "pre" and "post" wrappers
il y a 16 ans
Sahab Yazdani
27ebed7bca
The documentation for Mustache does not say that partials should introduce a sub-context. Remove this from Mustache.js
il y a 16 ans
Sahab Yazdani
0aa91dc2c3
Documentation for Mustache says that {{> name}} is a reference to the partial 'name'. Mustache JS does not accept this rule.
il y a 16 ans
Jason Smith
c5a114bf88
Reset the buffer only for new renderings, not e.g. partials
il y a 16 ans