- Building Single:page Web Apps with Meteor
- Fabian Vogelsteller
- 185字
- 2021-08-06 19:29:36
Chapter 2. Building HTML Templates
After we successfully installed Meteor and set up our folder structure, we can now start building the basic templates for our blog.
In this chapter, we will learn how templates are built. We will see how to display data and how some parts can be altered using helper functions. We will take a look on adding events, using conditions, and understanding data contexts, all in templates.
The following is an overview of what will be covered in this chapter:
- The basic template structure
- Displaying data
- Writing template helper functions
- Using conditions in templates
- Data contexts and how those can be set
- Nesting templates and data context inheritance
- Adding events
- Building block helpers
Note
If you jump right into this chapter without setting up the folder structure in the Chapter 1, Getting Started with Meteor, download the previous chapter's code examples from either the book's web page at https://www.packtpub.com/books/content/support/17713 or from the GitHub repository at https://github.com/frozeman/book-building-single-page-web-apps-with-meteor/tree/chapter1.
These code examples will also contain all the style files, so we don't have to worry about adding CSS code along the way.
- OpenStack Cloud Computing Cookbook(Fourth Edition)
- Visual Basic程序設計實驗指導(第4版)
- C語言程序設計教程
- Django 3.0入門與實踐
- Java程序設計基礎(第6版)
- Java程序設計教程
- Mastering Drupal 8
- 算法精解:C語言描述
- 現代C++語言核心特性解析
- Developer,Advocate!
- 循序漸進Vue.js 3前端開發實戰
- Mathematica Data Visualization
- SQL Server 2012數據庫管理與開發(慕課版)
- TensorFlow程序設計
- Learning ArcGIS Geodatabases