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
130
0
Share
PHP Templating
Kyle B. Johnson
February 02, 2016
More Decks by Kyle B. Johnson
See All by Kyle B. Johnson
Continuously Delivering Value
kjohnson
0
140
Building Pages in WordPress
kjohnson
0
180
Gutenberg
kjohnson
0
380
Introduction to WP-CLI
kjohnson
0
340
Separate your time from your income
kjohnson
0
480
iThemes Exchange
kjohnson
0
130
Easy Digital Downloads
kjohnson
0
84
WordPress Taxonomies
kjohnson
0
88
objects-a-short-intro.pdf
kjohnson
0
200
Other Decks in Programming
See All in Programming
Liberating Ruby's Parser from Lexer Hacks
ydah
2
2.6k
Back to the roots of date
jinroq
0
680
Spec-Driven Development with AI Agents (Workshop, May 2026)
antonarhipov
2
300
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
120
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
330
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
350
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
1.1k
WebAssembly を読み込むベストプラクティス 2026年春版 / Best Practices for Loading WebAssembly (Spring 2026)
petamoriken
5
1k
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
310
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
180
2026-04-15 Spring IO - I Can See Clearly Now
jonatan_ivanov
1
170
How We Practice Exploratory Testing in Iterative Development( #scrumniigata ) / 反復開発の中で、探索的テストをどう実施しているか
teyamagu
PRO
3
670
Featured
See All Featured
KATA
mclloyd
PRO
35
15k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.2k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
820
Abbi's Birthday
coloredviolet
2
7.4k
Deep Space Network (abreviated)
tonyrice
0
130
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
130
Exploring anti-patterns in Rails
aemeredith
3
350
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
240
The Cult of Friendly URLs
andyhume
79
6.9k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
770
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Rails Girls Zürich Keynote
gr2m
96
14k
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