- D Web Development
- Kai Nacke
- 111字
- 2021-07-16 09:35:32
Chapter 2. Using Templates for Your Web Pages
Every website has some recurring elements, for example, a navigation bar and a header. A template engine enables you to put these elements in separate files and construct the whole page out of these files. The vibe.d includes a template engine, the so-called Diet templates.
In this chapter, you will learn the following:
- Why templates are useful
- Key concepts of Diet templates: inheritance, includes, and blocks
- How to use filters and how to create your own filter
- How to change the document type
- How to insert comments in a template
- How to localize a template
- Using D code in the templates
推薦閱讀
- 基于粒計算模型的圖像處理
- TypeScript Essentials
- 自然語言處理實戰:預訓練模型應用及其產品化
- JavaScript全程指南
- 零基礎PHP學習筆記
- Pandas Cookbook
- 跟老齊學Python:輕松入門
- Instant 960 Grid System
- Mastering AndEngine Game Development
- Reactive Programming With Java 9
- Python編程與幾何圖形
- 琢石成器:Windows環境下32位匯編語言程序設計
- Python Web數據分析可視化:基于Django框架的開發實戰
- C++20高級編程
- Webpack實戰:入門、進階與調優(第2版)