FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix for template engine skipping falsy values like 0, false. by akanksha1105 · Pull Request #26 · blueimp/JavaScript-Templates · GitHub

This repository was archived by the owner on Sep 25, 2021. It is now read-only.

Fix for template engine skipping falsy values like 0, false. - #26

Closed
akanksha1105 wants to merge 2 commits into
blueimp:masterfrom
akanksha1105:master
Closed

Fix for template engine skipping falsy values like 0, false.#26
akanksha1105 wants to merge 2 commits into
blueimp:masterfrom
akanksha1105:master

Conversation

Copy link
Copy Markdown

Using these:

Template:

<h3>Count: {%=o.count%}</h3>

Data:

{
    "count": 0
}

Gives result:

Count: 

This patch fixes it.

Thanks,
Akanksha

blueimp closed this in 6ad43cf Jun 17, 2013
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL