User:Csmith1991/Vibe.d Documentation/diet

From D Wiki
< User:Csmith1991‎ | Vibe.d Documentation
Revision as of 02:17, 3 December 2015 by Csmith1991 (talk | contribs) (Vibe API)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Vibe.d Diet Template's Tutorial

This tutorial is extended from here. In this tutorial we will implement HTML5 Boilerplate using diet templates.

Diet Templates overview

Diet templates are an implementation of Jade used for terse generic markup. They're some notable differences and bugs in its current implementation that we'll cover as we come across them. If you've used Razor files in ASP.Net these should feel quite similar. The main selling points of using Diet Templates are:

  • Keeps things DRY
  • Creates dynamic HTML
  • Compiled to native code


Vibe API

Vibe does its best to exactly mirror Jade's. They're a few notable differences:

  • You can embed D! No need for JavaScript.

Documentation links:

  • Vibe's documentation is located here.
  • Supplemental documentation can be found on Jade's website.

Code

TODO