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
 		$.get(url, self.render);
51
 		$.get(url, self.render);
52
 	};
52
 	};
53
 	self.post = function() {
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
 	element.on('submit','form',self.submit);
56
 	element.on('submit','form',self.submit);
57
 	element.on('click','a.edit',self.edit)
57
 	element.on('click','a.edit',self.edit)

+ 1
- 1
examples/client_handlebars_compiled.html View File

53
 		$.get(url, self.render);
53
 		$.get(url, self.render);
54
 	};
54
 	};
55
 	self.post = function() {
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
 	element.on('submit','form',self.submit);
58
 	element.on('submit','form',self.submit);
59
 	element.on('click','a.edit',self.edit)
59
 	element.on('click','a.edit',self.edit)

Loading…
Cancel
Save