- 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
推薦閱讀
- Mastering Concurrency Programming with Java 8
- Pandas Cookbook
- Getting Started with PowerShell
- Java游戲服務(wù)器架構(gòu)實(shí)戰(zhàn)
- Julia Cookbook
- Node.js Design Patterns
- Java網(wǎng)絡(luò)編程核心技術(shù)詳解(視頻微課版)
- 基于SpringBoot實(shí)現(xiàn):Java分布式中間件開發(fā)入門與實(shí)戰(zhàn)
- ArcGIS for Desktop Cookbook
- JavaScript動態(tài)網(wǎng)頁編程
- 實(shí)戰(zhàn)Java高并發(fā)程序設(shè)計(jì)(第2版)
- 邊玩邊學(xué)Scratch3.0少兒趣味編程
- Puppet:Mastering Infrastructure Automation
- TypeScript圖形渲染實(shí)戰(zhàn):2D架構(gòu)設(shè)計(jì)與實(shí)現(xiàn)
- 零基礎(chǔ)學(xué)編程系列(全5冊)