Browse Source

Handlebars examples

Maurits van der Schee 8 years ago
parent
commit
20d1f39d64
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      examples/client_handlebars.html
  2. 1
    1
      examples/client_handlebars_compiled.html

+ 1
- 1
examples/client_handlebars.html View File

@@ -51,7 +51,7 @@ function PostList(element, template) {
51 51
 		$.get(url, self.render);
52 52
 	};
53 53
 	self.post = function() {
54
-		$.post(url, {user_id:1,category_id:1,content:"from mustache"}, self.update);
54
+		$.post(url, {user_id:1,category_id:1,content:"from handlebars"}, self.update);
55 55
 	};
56 56
 	element.on('submit','form',self.submit);
57 57
 	element.on('click','a.edit',self.edit)

+ 1
- 1
examples/client_handlebars_compiled.html View File

@@ -53,7 +53,7 @@ function PostList(element, template) {
53 53
 		$.get(url, self.render);
54 54
 	};
55 55
 	self.post = function() {
56
-		$.post(url, {user_id:1,category_id:1,content:"from mustache"}, self.update);
56
+		$.post(url, {user_id:1,category_id:1,content:"from handlebars_compiled"}, self.update);
57 57
 	};
58 58
 	element.on('submit','form',self.submit);
59 59
 	element.on('click','a.edit',self.edit)

Loading…
Cancel
Save