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
160
Gutenberg
kjohnson
0
370
Introduction to WP-CLI
kjohnson
0
320
Separate your time from your income
kjohnson
0
450
iThemes Exchange
kjohnson
0
120
Easy Digital Downloads
kjohnson
0
83
WordPress Taxonomies
kjohnson
0
86
objects-a-short-intro.pdf
kjohnson
0
190
Other Decks in Programming
See All in Programming
Learn CPU architecture with Assembly
akkeylab
1
1.3k
2025年版 サーバーレス Web アプリケーションの作り方
hayatow
23
25k
麻雀点数計算問題生成タスクから学ぶ Single Agentの限界と Agentic Workflowの底力
po3rin
5
2k
「社内LT会」を1年続けてみた! / Our Year-Long Journey of Internal Lightning Talks
mackey0225
1
110
検索機能リプレイスを4ヶ月→2ヶ月に! AI Agentで実現した2倍速リプレイス
fuuki12
4
820
Swift Concurrency - 状態監視の罠
objectiveaudio
2
130
どの様にAIエージェントと 協業すべきだったのか?
takefumiyoshii
1
460
Server Less Code More - コードを書かない時代に生きるサーバーレスデザイン / server-less-code-more
gawa
5
1.9k
詳しくない分野でのVibe Codingで困ったことと学び/vibe-coding-in-unfamiliar-area
shibayu36
0
210
Reactをクライアントで使わない
yusukebe
7
6.1k
AIエージェント時代における TypeScriptスキーマ駆動開発の新たな役割
bicstone
4
1.1k
Let's Write a Train Tracking Algorithm
twocentstudios
0
210
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
3k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6.1k
Scaling GitHub
holman
463
140k
Designing for Performance
lara
610
69k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
30
9.7k
The Art of Programming - Codeland 2020
erikaheidi
56
13k
Music & Morning Musume
bryan
46
6.8k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.1k
The Power of CSS Pseudo Elements
geoffreycrofte
78
6k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
Faster Mobile Websites
deanohume
310
31k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
188
55k
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