Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PHP Templating
Search
Kyle B. Johnson
February 02, 2016
Programming
0
99
PHP Templating
Kyle B. Johnson
February 02, 2016
Tweet
Share
More Decks by Kyle B. Johnson
See All by Kyle B. Johnson
Continuously Delivering Value
kjohnson
0
85
Building Pages in WordPress
kjohnson
0
100
Gutenberg
kjohnson
0
340
Introduction to WP-CLI
kjohnson
0
290
Separate your time from your income
kjohnson
0
340
iThemes Exchange
kjohnson
0
60
Easy Digital Downloads
kjohnson
0
70
WordPress Taxonomies
kjohnson
0
76
objects-a-short-intro.pdf
kjohnson
0
140
Other Decks in Programming
See All in Programming
Hanami and htmx
bkuhlmann
0
230
見た目から始める生産性向上
ikumatadokoro
10
1.5k
デフォルトにして至高、RubyMineの大好きな所
ruzia
0
1.1k
初心者のためのRubyKaigi入門/RubyKaigi Introduction
a_matsuda
10
1.7k
GitHub Copilotのススメ
marcy731
1
240
『Railsオワコン』と言われる時代に、なぜブルーモ証券はRailsを選ぶのか
free_world21
2
400
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
290
dbtのドメイン分割による データ基盤の改善とDigdagとの連携
sakama
0
480
Elm 0.19.0 Changes
bkuhlmann
0
510
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
530
Ruby GitHub Packages
bkuhlmann
0
650
Git Lint
bkuhlmann
4
770
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
290
19k
KATA
mclloyd
16
12k
The Cost Of JavaScript in 2023
addyosmani
21
3.9k
The Mythical Team-Month
searls
217
42k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
22
1.6k
The Pragmatic Product Professional
lauravandoore
26
5.8k
Creatively Recalculating Your Daily Design Routine
revolveconf
211
11k
We Have a Design System, Now What?
morganepeng
43
6.8k
Side Projects
sachag
451
41k
In The Pink: A Labor of Love
frogandcode
138
21k
Fantastic passwords and where to find them - at NoRuKo
philnash
39
2.5k
Transcript
<?= $title; ?>
Templating
What are templates?
A molecular structure of a compound that serves as a
pattern for the production of the molecular structure of another specific compound in a reaction. What are templates?
A molecular structure of a compound that serves as a
pattern for the production of the molecular structure of another specific compound in a reaction. What are templates?
A molecular structure of a compound that serves as a
pattern for the production of the molecular structure of another specific compound in a reaction. What are templates?
A pattern for production. What are templates?
Why use templates?
Society for Pediatric Radiology S.P.R.
Society for Pediatric Radiology S.P.R.
Separation. Portability. Reusability S.P.R.
…allow for the separation of display from processing Templates…
…allow for the portability of display across projects. Templates…
…allow for the reusability of display within a project. Templates…
Template Libraries also provide a better syntax.
Template Libraries also provide a better* syntax. *more attractive
Template Libraries also provide a better* syntax. *universal
Template Libraries also provide a better* syntax. *language agnostic
{{ title }}
PHP Libraries
PHP The Right Way phptherightway.com
PHP Templating Libraries • Smarty: {$foo} • Twig: {{ foo
}} • Blade: {{ $foo }} • Mustache: {{ foo }} • Dwoo: $dwoo->get( ‘foo’ );
<%= subtitle %> <%= title %>
in closing… JavaScript
None
@section( ‘questions’ )
{{ $answer }}
None
None