- 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
推薦閱讀
- Learning Spring 5.0
- Apache Spark Graph Processing
- Oracle BAM 11gR1 Handbook
- TypeScript實(shí)戰(zhàn)指南
- C語(yǔ)言程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo) (第2版)
- 持續(xù)輕量級(jí)Java EE開發(fā):編寫可測(cè)試的代碼
- iPhone應(yīng)用開發(fā)從入門到精通
- 代碼閱讀
- Learning Nessus for Penetration Testing
- Java Web應(yīng)用開發(fā)給力起飛
- Learning Concurrency in Python
- Python 快速入門(第3版)
- After Effects CC技術(shù)大全
- Learning NHibernate 4
- 現(xiàn)代JavaScript編程:經(jīng)典范例與實(shí)踐技巧