Book Image

FuelPHP Application Development Blueprints

By : Sebastien Drouyer
Book Image

FuelPHP Application Development Blueprints

By: Sebastien Drouyer

Overview of this book

Table of Contents (13 chapters)
FuelPHP Application Development Blueprints
About the Author
About the Reviewers

A major benefit of language-agnostic template engines

If you open the main web page of the Mustache template engine (, you are going to see that the engine is available in many different languages (Ruby, JavaScript, Python, Node.js, PHP, Java, C++, ASP, C#, and so on). However, it doesn't matter which language you are going to use the engine: the syntax of the template will remain the same and the language won't have any influence on the code you will write. This is because Mustache is a language-agnostic template engine. This is a great advantage if you work with a team using many different languages such as PHP, JavaScript, Ruby, or Python; your views can be written in the same common markup language. We are going to use this feature to our own advantage.

The following diagram shows the most common way that websites work right now:

But you often need to dynamically load new content once your webpage is displayed in your browser:

In order to further illustrate this...