News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Introduction to JadePHP
April 10, 2014 @ 10:30:30

Lukas White has posted an introduction to JadePHP to the SitePoint PHP blog today. JadePHP is a port of the popular Jade templating language more often used in Javascript.

There are dozens of templating engines out there, with options such as Smarty, Twig (used in the upcoming version of Drupal) and Blade (the default for Laravel) among the best known - as well as vanilla PHP, of course. [...] One which differs quite significantly from most is Jade, an engine usually associated with Javascript applications - it's supported out-of-the-box by Express for Node.js, for example. It's Jade I'm going to look at in this article; or more specifically the PHP port JadePHP.

He starts by briefly talking about HAML, a markup language that aims to make it easier and cleaner to write well-formatted HTML documents. Jade creates the entire document this way, meaning you could use it even without any templating needs (just outputting normal HTML pages). He shows you how to get started with the code and provides a simple example of a basic HTML page without any template objects to replace.He explains the markup and what each part does before moving on and showing how to add in the dynamic content and logic. He finishes off the tutorial by answering the question "Why use Jade?" touching on some of the good and bad of the templating engine.

0 comments voice your opinion now!
jadephp templating haml markup library tutorial

Link: http://www.sitepoint.com/introduction-jadephp

blog comments powered by Disqus

Similar Posts

Felix Geisendörfer's Blog: Learning from the CakePHP Source Code (Part 1)

Evan Coury: Getting started with the ZF2 skeleton and ZfcUser

NETTUTS.com: The Newbie's Guide to Test-Driven Development

NETTUTS.com: Everything You Need to Get Started With CodeIgniter

SitePoint PHP Blog: Building an Ad Manager in Symfony 2


Community Events





Don't see your event here?
Let us know!


opinion tool interview language library framework version community symfony introduction list voicesoftheelephpant security laravel composer artisanfiles conference series release podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework