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
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
5c08642838
Make IMPLICIT ITERATORS a first class feature.
Closes #39 .
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
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
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
Jason Smith
bc447d8722
Actually ignore comment tags; and correct the expected output in the test case
il y a 16 ans
Jason Smith
d82a1174d7
Actually ignore comment tags; and correct the expected output in the test case
il y a 16 ans
Jan Lehnardt
a6de1a3bdd
add inverted sections. Closes #17 and #24 . Patch by defunkt.
il y a 16 ans
Jan Lehnardt
8df3bef014
don't doublt encode entities. Closes #19 . Patch by Leeoniya
il y a 16 ans
Jan Lehnardt
2085b5f5a0
allow using sections as context. Patch by dpree.
il y a 16 ans
Chris Wanstrath
e2e8f16845
Higher Order Sections
If a section key returns a function, it will be called
and passed both the unrendered block of text and a renderer
convenience function.
Given this JS:
"name": "Tater",
"bolder": function() {
return function(text, render) {
return "<b>" + render(text) + '</b>'
}
}
And this template:
{{#bolder}}Hi {{name}}.{{/bolder}}
We'll get this output:
<b>Hi Tater.</b>
As you can see, we're pre-processing the text in the block.
This can be used to implement caching, filters (like syntax
highlighting), etc.
You can use `this.name` to access the attribute `name` from
your view.
il y a 16 ans
Brian Kierstead
7198e2c578
simple iterator adding \n bug
il y a 16 ans
Jan Lehnardt
4694868fdc
don't barf on undefined partial contexts, return the verbatim partial instead
il y a 16 ans
Jan Lehnardt
eaaae4696b
clean up tests
il y a 16 ans
Damien Mathieu
2d574f70dc
add a (failing for now) example of loop inside a partial
il y a 16 ans
Jan Lehnardt
cb39d246df
throw exception when encountering an unknown pragma
il y a 16 ans
Elise Wood
6324de20c6
tests for null value change
il y a 16 ans
Jan Lehnardt
88ddf16cec
allow tag-free templates. Closes http://github.com/janl/mustache.js/issues#issue/9
il y a 16 ans
Jan Lehnardt
17630842a1
add pragma options, rename pragma according to mustache
il y a 16 ans
Jan Lehnardt
d0d46e52aa
make mustache streaming
il y a 16 ans
Jan Lehnardt
ec18e0eff4
spaces, not tabs
il y a 16 ans
Jan Lehnardt
0bb4776def
mustache compat: Don't barf on unknown variables.
il y a 16 ans
Jan Lehnardt
b579404912
s/ENABLE-STRING-ARRAYS/JSTACHE-ENABLE-STRING-ARRAYS/
il y a 16 ans
Jan Lehnardt
1fa8421678
make strings of arrays a pragma option, introduce {{%PRAGMA}} tag to enable features
il y a 16 ans
Jan Lehnardt
176b0111fe
ctemplate / mustache compat: partials now use >, not <
il y a 16 ans
Paul J. Davis
895e741234
Fix error message consistency.
il y a 16 ans
Paul J. Davis
3a9eda10b4
Avoid requiring partials in global scope.
il y a 16 ans
Chris Williams
a096578f99
Fixing trailing white space sensitivity for reusable enumerable spec.
il y a 16 ans
Chris Williams
68830cadff
Updated the render_segment to allow for the same variable to be reused for multiple template segments. Added a map function that can be used if not available on array natively - ahem IE ahem
il y a 16 ans
Sebastian Cohnen
45948113fa
Fixed changing the delimiter
Changing the delimiter and use the new one on the
same line was broken. Fixed that and extended the
test suite.
il y a 16 ans
Sebastian Cohnen
c8c378c4f5
Rewritten render_tags, added test for two placeholder in one row
il y a 16 ans
Alexander Lang
093a5b84da
fixed bug where recursion overwrote data in the parent context
il y a 16 ans
Alexander Lang
437056a7e7
added processing arrays of plain values
il y a 16 ans
Jan Lehnardt
712e78bd17
allow for delimiter changes
il y a 16 ans
Jan Lehnardt
0a466bfce3
add mustache tests, implement partials
il y a 16 ans
Jan Lehnardt
50f8035e3e
add test suite, implement escaping
il y a 16 ans
Jan Lehnardt
0e11ce9ee5
initial drop
il y a 16 ans