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
130
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
130
Building Pages in WordPress
kjohnson
0
150
Gutenberg
kjohnson
0
370
Introduction to WP-CLI
kjohnson
0
320
Separate your time from your income
kjohnson
0
440
iThemes Exchange
kjohnson
0
100
Easy Digital Downloads
kjohnson
0
82
WordPress Taxonomies
kjohnson
0
80
objects-a-short-intro.pdf
kjohnson
0
180
Other Decks in Programming
See All in Programming
High-Level Programming Languages in AI Era -Human Thought and Mind-
hayat01sh1da
PRO
0
470
5つのアンチパターンから学ぶLT設計
narihara
1
120
Beyond Portability: Live Migration for Evolving WebAssembly Workloads
chikuwait
0
390
git worktree × Claude Code × MCP ~生成AI時代の並列開発フロー~
hisuzuya
1
490
今ならAmazon ECSのサービス間通信をどう選ぶか / Selection of ECS Interservice Communication 2025
tkikuc
20
3.7k
#kanrk08 / 公開版 PicoRubyとマイコンでの自作トレーニング計測装置を用いたワークアウトの理想と現実
bash0c7
1
520
DroidKnights 2025 - 다양한 스크롤 뷰에서의 영상 재생
gaeun5744
3
320
Kotlin エンジニアへ送る:Swift 案件に参加させられる日に備えて~似てるけど色々違う Swift の仕様 / from Kotlin to Swift
lovee
1
260
Java on Azure で LangGraph!
kohei3110
0
170
PostgreSQLのRow Level SecurityをPHPのORMで扱う Eloquent vs Doctrine #phpcon #track2
77web
2
370
設計やレビューに悩んでいるPHPerに贈る、クリーンなオブジェクト設計の指針たち
panda_program
6
1.5k
アンドパッドの Go 勉強会「 gopher 会」とその内容の紹介
andpad
0
270
Featured
See All Featured
Visualization
eitanlees
146
16k
How GitHub (no longer) Works
holman
314
140k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
4 Signs Your Business is Dying
shpigford
184
22k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Writing Fast Ruby
sferik
628
61k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
The World Runs on Bad Software
bkeepers
PRO
69
11k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Docker and Python
trallard
44
3.4k
Building an army of robots
kneath
306
45k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
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