- 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.
- Hyper-V 2016 Best Practices
- Python量化投資指南:基礎、數據與實戰
- JMeter 性能測試實戰(第2版)
- 程序員面試算法寶典
- Full-Stack Vue.js 2 and Laravel 5
- YARN Essentials
- Getting Started with LLVM Core Libraries
- Rust游戲開發實戰
- Angular應用程序開發指南
- 從零開始學Android開發
- 30天學通C#項目案例開發
- Appcelerator Titanium:Patterns and Best Practices
- 超好玩的Scratch 3.5少兒編程
- Raspberry Pi Robotic Projects
- Enterprise Application Architecture with .NET Core