raymond.lam
bd12d95eb5
wrap code comments explaining , and use a different example
před 9 roky
raymond.lam
fa75abc4cd
enhance readability of primitiveHasOwnProperty and add comments to explain why it is used in one case but not the other
před 9 roky
raymond.lam
0e607fe9f5
add test to address #589 specifically
před 9 roky
raymond.lam
d2f3a48028
re-add constraint in prop lookup, but make property lookups for primitives possible through dot notation
před 9 roky
raymond.lam
81080456dd
pop lookup needs to use hasOwnProperty for non-objs
před 9 roky
David da Silva
6382ec91e8
Remove `typeof obj === 'object'` constraint in prop lookup
Allows rendering properties of primitive types that are not objects, such as a string.
před 9 roky
raymond.lam
a51e1c22a1
add test for renderability of Array.length via dot notation
před 9 roky
raymond.lam
78ed7a0839
prevent value from being returned by Context.prototype.lookup if lookupHit is false
před 9 roky
David da Silva
b283da5c8c
Merge pull request #643 from raymond-lam/issue617
Writer.prototype.parse to cache by tags in addition to template string
před 8 roky
raymond.lam
198a5657be
fix typo in parse-caching/Mustache.tags test
před 8 roky
raymond.lam
24653984d0
Writer.prototype.parse to cache by tags in addition to template string
před 9 roky
David da Silva
23beb3a880
:ship: bump to version 2.3.0
před 9 roky
David da Silva
2f2588a213
Merge pull request #597 from mightyplow/patch-1
return mustache object from factory
před 9 roky
Phillip Johnsen
672bbd58ed
Second shot at having greenkeeper ignore eslint ( #610 )
First shot at getting greenkeeper to ignoring eslint updates landed with commit 85fa743258 .
Sadly that commit had a minor `greenkeper` misspelling in package.json, which obviously didn't have much effect for greenkeeper.
This commit fixes that blooper in hopes that greenkeeper will stop opening PRs about new eslint versions, as we don't want to
update at the moment cause eslint 3.x requires Node.js v4.x.
před 9 roky
Calvin Freitas
1d1a8af41b
add doctype to html template example ( #593 )
před 9 roky
Phillip Johnsen
66ff4d91ae
Run browser tests w/node v4
As zuul consequently fails when running on node v0.12.
před 9 roky
Greenkeeper
0180f43609
chore(package): update zuul to version 3.11.0 ( #594 )
https://greenkeeper.io/
před 9 roky
Greenkeeper
1b1a15904e
chore(package): update mocha to version 3.0.2 ( #588 )
https://greenkeeper.io/
před 9 roky
Phillip Johnsen
85fa743258
Ignore eslint for greenkeeper updates. ( #580 )
As we don't plan to update to Node.js v4 any time soon,
we can't update eslint cause it requires Node.js => v4.
před 9 roky
mightyplow
fc5492b750
return mustache object from factory
When using amdclean to create a footprint less javascript file, the object needs to be returned to let it properly be assigned to the created script variable.
před 9 roky
Evan
eae8aa3ba9
Fix #586 : Change "loadUser" to "loadUser()" in docs. ( #592 )
před 9 roky
oughter
25cf65befb
Document ways to set custom delimiters via JS ( #575 )
Documents ways to set custom delimiters via JS, in addition to inline in the templates.
před 9 roky
Morton Fox
8ae505a3a8
Fix link to Ctemplate and its HowTo since they've moved to GitHub ( #569 )
před 10 roky
Greenkeeper
c529bcc7f0
chore(package): update mocha to version 2.5.0 ( #565 )
před 10 roky
kookookchoozeus
329bfd090d
Fixes CLI tests for windows ( #560 )
* Fixes CLI tests for windows
* Hijacked exec so we don't have to wrap each command in changeForOS, and made replacing 'cat' safer with word boundaries
* Fixing changed tests to be more consistent with the code base
před 10 roky
David da Silva
9017163785
Merge pull request #553 from janl/escaped-lookup-test
Assert null lookup when rendering an unescaped value
před 10 roky
David da Silva
bdfb5d069e
Merge pull request #555 from janl/greenkeeper-eslint-2.5.0
eslint@2.5.0 breaks build 🚨
před 10 roky
David da Silva
4e096aa7c1
chore(package): update eslint to version 2.5.1
http://greenkeeper.io/
před 10 roky
David da Silva
7e83df9b05
Assert `null` value render
It was not being asserted anywhere else, and I was suspecting that
PR #552 was changing current (and correct) behaviour.
před 10 roky
David da Silva
5e19b3049b
Add consistent indentation in null_lookup_object.js test file
Either vim or git was going crazy with the indentation when I tried
improving the test via changing one of the lines, so I linted it all
together.
před 10 roky
Phillip Johnsen
85bccf6056
Merge pull request #542 from tomekwi/api-docs
Document the API
před 10 roky
Tomek Wiszniewski
119b5046d7
Document the API
I couldn’t find the API in the docs. This is what I found out by reading the source. Let’s save others the pain.
Mark partials as optional
před 10 roky
Phillip Johnsen
fc4db270eb
Merge pull request #548 from janl/greenkeeper-eslint-2.2.0
Update eslint to version 2.2.0 🚀
před 10 roky
greenkeeperio-bot
cad1ea0584
chore(package): update eslint to version 2.2.0
http://greenkeeper.io/
před 10 roky
Phillip Johnsen
3a97339897
Merge pull request #546 from pra85/patch-2
Cosmetic changes to Readme
před 10 roky
Prayag Verma
6e42494ce1
Cosmetic changes to Readme
Add syntax highlighting style to previously missed code blocks
před 10 roky
Phillip Johnsen
e1997ee414
Merge pull request #540 from wizawu/merge-upstream
Add optional `output` argument to mustache bin
před 10 roky
wizawu
c71fc6ff6b
Remove test/_files/cli_output.txt
před 10 roky
wizawu
3165c53f7f
Add test case for `output` argument
před 10 roky
wizawu
8bfd6e4c60
Add `output` argument to mustache bin
před 10 roky
David da Silva
cd06b22dab
:ship: bump to version 2.2.1
před 10 roky
Phillip Johnsen
692609d419
Merge pull request #533 from keirog/fix-quote-typo-docs
Fix minor typo in docs
před 10 roky
Keith Rogers
1a391c9b2c
Fix minor typo in docs
před 10 roky
David da Silva
60a41db58a
Merge pull request #532 from simast/master
Fix inconsistency in defining global mustache object.
před 10 roky
Simas Toleikis
3460f1ef67
Fix inconsistency in defining global mustache object.
před 10 roky
David da Silva
34ebd1cb1a
Merge pull request #530 from janl/improve-html-escaping
Improve HTML escaping
před 10 roky
Phillip Johnsen
378bcca8a5
Improve HTML escaping.
This closes a couple of potential exploit scenarios.
Backtick (`) for older IEs and equals (=) for unquoted attributes.
Refs 83b8e846a3
Closes https://github.com/janl/mustache.js/pull/388
před 10 roky
Phillip Johnsen
53b1c955f9
Merge pull request #500 from imagentleman/patch-1
Removed html syntax highlighting on README.md example
před 10 roky
Phillip Johnsen
a518c6d140
Merge pull request #524 from janl/unpin-chai-eslint
Unpin chai and eslint versions
před 10 roky
David da Silva
dadbe203d5
Unpin chai and eslint versions
greenkeeper.io will let us know if the minor/patch bumps break our code, so go wild.
před 10 roky