diff options
author | Yehuda Katz <wycats@gmail.com> | 2012-10-12 23:40:51 -0700 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2012-10-12 23:40:51 -0700 |
commit | 3212325173320eeb96406af1f49e4793fc09b1a2 (patch) | |
tree | b9ac5eed2f77df3de5b38479077561d7bd09ae68 /README.markdown | |
parent | 850304f43beb0d4d6512b6d5526055f14fe83fd2 (diff) | |
parent | 4cf08693301cb5d7ee385965e26761434bfa0bfb (diff) | |
download | handlebars.js-3212325173320eeb96406af1f49e4793fc09b1a2.zip handlebars.js-3212325173320eeb96406af1f49e4793fc09b1a2.tar.gz handlebars.js-3212325173320eeb96406af1f49e4793fc09b1a2.tar.bz2 |
Merge pull request #290 from fancyoung/master
Fix demo bug in README
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown index 5fdb62a..28fa9a5 100644 --- a/README.markdown +++ b/README.markdown @@ -112,7 +112,7 @@ instance: ```js Handlebars.registerHelper('link_to', function(title, context) { - return "<a href='/posts" + context.id + "'>" + title + "</a>" + return "<a href='/posts" + context.url + "'>" + title + "!</a>" }); var context = { posts: [{url: "/hello-world", body: "Hello World!"}] }; @@ -124,7 +124,7 @@ template(context); // Would render: // // <ul> -// <li><a href='/hello-world'>Post!</a></li> +// <li><a href='/posts/hello-world'>Post!</a></li> // </ul> ``` |