Jan Lehnardt
f1f55138a4
fix expected output
пре 16 година
Jan Lehnardt
c2f886602a
Merge remote branch 'rbriank/master'
* rbriank/master:
simple iterator adding \n bug
пре 16 година
Jan Lehnardt
88d3d9cf32
fix rake commonjs part 2
пре 16 година
Jan Lehnardt
90f93aa7e3
fix rake commonjs
пре 16 година
Jan Lehnardt
a7464db373
remove lib, use rake commonjs for a commonjs package
пре 16 година
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
пре 16 година
Jason Smith
c5a114bf88
Reset the buffer only for new renderings, not e.g. partials
пре 16 година
Jan Lehnardt
000f4823bb
update CHANGES, THANKS
пре 16 година
Jason Smith
bc447d8722
Actually ignore comment tags; and correct the expected output in the test case
пре 16 година
Jason Smith
0117a42532
Output the "Done" message as before
пре 16 година
Jason Smith
d82a1174d7
Actually ignore comment tags; and correct the expected output in the test case
пре 16 година
Jason Smith
01272005fe
Refactor template-style builds into a common function
пре 16 година
Jason Smith
f54312e879
Execute commands properly. You can see what's happening, and errors halt the build
пре 16 година
Jason Smith
43587531c8
Build CommonJS just like any other target, using "pre" and "post" wrappers
пре 16 година
Jan Lehnardt
6e4bd7f86b
Clear buffer before rendering. Closes #26 .
пре 16 година
Jan Lehnardt
328724ad43
whitespace
пре 16 година
Alexander Lang
c12ba296ab
added testcase for issue #26
пре 16 година
Jan Lehnardt
4eebb4ba4f
Merge branch 'master' of github.com:janl/mustache.js
* 'master' of github.com:janl/mustache.js:
allow using sections as context. Patch by dpree.
Conflicts:
CHANGES.md
README.md
mustache.js
пре 16 година
Jan Lehnardt
a6de1a3bdd
add inverted sections. Closes #17 and #24 . Patch by defunkt.
пре 16 година
Jan Lehnardt
a1d5fcddfa
less line noise
пре 16 година
Jan Lehnardt
9f0c741c50
whitespace
пре 16 година
Jan Lehnardt
78f2bd4e39
update
пре 16 година
Jan Lehnardt
8df3bef014
don't doublt encode entities. Closes #19 . Patch by Leeoniya
пре 16 година
Jan Lehnardt
2085b5f5a0
allow using sections as context. Patch by dpree.
пре 16 година
Jan Lehnardt
38ca0cef68
allow using sections as context. Patch by dpree.
пре 16 година
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.
пре 16 година
Jan Lehnardt
b76120acb4
Merge remote branch 'defunkt/rake'
* defunkt/rake:
Add descriptions to rake tasks (`rake -T` to see all)
print => puts
пре 16 година
Jan Lehnardt
c1c18e7c17
start 0.3 branch
пре 16 година
Brian Kierstead
7198e2c578
simple iterator adding \n bug
пре 16 година
Chris Wanstrath
4b79a9f594
Add descriptions to rake tasks (`rake -T` to see all)
пре 16 година
Chris Wanstrath
3a2717e12e
print => puts
пре 16 година
Jan Lehnardt
ca7956565a
Move commonjs branch into master.
lib/mustache.js is now always kept in sync with mustache.js
(cc @tlrobinson , @boucher )
пре 16 година
Jan Lehnardt
9eac2ded28
Less ego
пре 16 година
Jan Lehnardt
6175dc69a6
update CHANGES
пре 16 година
Jan Lehnardt
ffa4738595
release 0.2.3
пре 16 година
Jan Lehnardt
20aa13e331
rake ain't make
пре 16 година
Jan Lehnardt
0b4ea36a9c
thanks will, qoobaa
пре 16 година
Jan Lehnardt
baeab34a25
less hacky, thanks will
пре 16 година
Jakub Kuźma
420dd04143
added YUI3 support
пре 16 година
Jan Lehnardt
4694868fdc
don't barf on undefined partial contexts, return the verbatim partial instead
пре 16 година
Jan Lehnardt
2c8857e84a
remove extra semicolon
пре 16 година
Jan Lehnardt
9e2fc30e28
thanks dmathieu, undupe jchris
пре 16 година
Jan Lehnardt
eaaae4696b
clean up tests
пре 16 година
Jan Lehnardt
d9ab0b0041
Revert "Parse pragmas only once"
This reverts commit 738de0bcae .
Conflicts:
mustache.js
пре 16 година
Damien Mathieu
2d574f70dc
add a (failing for now) example of loop inside a partial
пре 16 година
Jakub Kuźma
5c3a177662
fixed semicolons, added var to 'i' global variable
пре 16 година
Jan Lehnardt
cb39d246df
throw exception when encountering an unknown pragma
пре 16 година
Chris Wanstrath
8bb475bf4b
Fix broken link, mention manpages and docs.
пре 16 година
Jan Lehnardt
5b9a0e5ee9
thanks jchris
пре 16 година
Jan Lehnardt
272fd0fc1f
fix test case
пре 16 година