Creating Templates

When rendering a template, you need to create template files. When creating template files, keep in mind these considerations:

Image Reusability: Try to make your templates reusable in other parts of you application and in other applications. Most template engines cache templates to speed up performance. The more templates you have, the more caching time your engine will have to spend. Try to organize your templates so that they can be used for multiple purposes. For example, if you have several tables of data displayed in an app, make only a single template for all of them that can not only dynamically add the data but also set column ...

Get Node.js, MongoDB, and AngularJS Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.