Browse files

readme

  • Loading branch information...
1 parent 6370853 commit b83591bd1eca58012417d739460767b9419ca730 Tomasz Mazur committed Jul 9, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 readme.md
View
4 readme.md
@@ -6,7 +6,7 @@ NANO - jQuery Template Engine
Assuming you have following JSON response:
<pre>
-user = {
+data= {
user: {
login: "tomek",
first_name: "Thomas",
@@ -22,7 +22,7 @@ user = {
you can make:
<code>
- $.nano("&lt;p&gt;Hello {user.first_name} {user.last_name}! Your account is &lt;strong&gt;{user.account.status}&lt;/strong&gt;&lt;/p&gt;", user)
+ $.nano("&lt;p&gt;Hello {user.first_name} {user.last_name}! Your account is &lt;strong&gt;{user.account.status}&lt;/strong&gt;&lt;/p&gt;", data)
</code>
and you get ready string:

0 comments on commit b83591b

Please sign in to comment.