Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why did Google create another template system for its AJAX applications instead of using an existing solution?

0
Posted

Why did Google create another template system for its AJAX applications instead of using an existing solution?

0

There are many reasons why we created a new solution: • Better performance. We wanted JavaScript templates that aren’t parsed on the client. Closure Templates compiles the templates server-side into efficient JavaScript functions, which can then be rendered client-side. • One template for client and server code. We wanted templates that have a language-neutral syntax such that you can write a template once and reuse it from both server-side Java and client-side JavaScript. With Closure Templates, you can render your application’s initial UI server-side and then have the client-side JavaScript modify specific parts of the UI by re-rendering some of the templates that make up parts of the page. • Natural for programmers. We wanted a template syntax that was comfortable for programmers, without the limitations of XML-based syntax. Closure Templates give programmers the ability to have many templates in the same source file and for templates to call each other like functions. • Easy-to-use

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123