Talk:Template Object Model
Latest comment: 10 years ago by Cscott in topic Handlebars alternative
Handlebars alternative
editAn alternative proposal would be based on meteor's next-gen template system, as described in talk #2 at https://www.meteor.com/blog/2014/01/03/6-must-see-meteor-talks-from-2013
This is an "as simple as possible" proposal. It uses handlebars syntax, and htmljs as the intermediate representation (see 15:30 in the previous video for an example). Some links:
- https://github.com/meteor/meteor/tree/shark/packages/htmljs IR
- https://github.com/meteor/meteor/tree/shark/packages/spacebars-compiler parser/compiler
- https://github.com/meteor/meteor/wiki/Handlebars handlebars syntax
- https://github.com/meteor/meteor/wiki/New-Template-Engine-Preview some additional notes
It has a nice mechanism for Template inheritance which could be attracting, and a restricted expression syntax. cscott (talk) 18:25, 14 January 2014 (UTC)