Difference between revisions of "User:Csmith1991/Vibe.d Documentation/diet"

From D Wiki
Jump to: navigation, search
m (Vibe API)
Line 15: Line 15:
* You can embed D! No need for JavaScript.
* You can embed D! No need for JavaScript.
* Block, Extends, and Includes don't work quite right at the moment.
==== Documentation links:====
==== Documentation links:====

Latest revision as of 02:17, 3 December 2015

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.