Enviar pesquisa
Carregar
Changing Template Engine
•
Transferir como PPT, PDF
•
0 gostou
•
911 visualizações
Takatsugu Shigeta
Seguir
YAPC::Asia Tokyo 2010 Day 1 テンプレートエンジンの移行
Leia menos
Leia mais
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 53
Baixar agora
Recomendados
Evolution of API With Blogging
Evolution of API With Blogging
Takatsugu Shigeta
シックス・アパート・フレームワーク
シックス・アパート・フレームワーク
Takatsugu Shigeta
What's new in Rails 2?
What's new in Rails 2?
brynary
jQuery from the very beginning
jQuery from the very beginning
Anis Ahmad
Introduction to JQuery
Introduction to JQuery
MobME Technical
WordPress APIs
WordPress APIs
Joseph Scott
Smarter Interfaces with jQuery (and Drupal)
Smarter Interfaces with jQuery (and Drupal)
aasarava
Php 3 1
Php 3 1
Digital Insights - Digital Marketing Agency
Recomendados
Evolution of API With Blogging
Evolution of API With Blogging
Takatsugu Shigeta
シックス・アパート・フレームワーク
シックス・アパート・フレームワーク
Takatsugu Shigeta
What's new in Rails 2?
What's new in Rails 2?
brynary
jQuery from the very beginning
jQuery from the very beginning
Anis Ahmad
Introduction to JQuery
Introduction to JQuery
MobME Technical
WordPress APIs
WordPress APIs
Joseph Scott
Smarter Interfaces with jQuery (and Drupal)
Smarter Interfaces with jQuery (and Drupal)
aasarava
Php 3 1
Php 3 1
Digital Insights - Digital Marketing Agency
Page Caching Resurrected
Page Caching Resurrected
Ben Scofield
Php Basic Security
Php Basic Security
mussawir20
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)
Michael Wales
Apache Camel - WJax 2008
Apache Camel - WJax 2008
inovex GmbH
Create a web-app with Cgi Appplication
Create a web-app with Cgi Appplication
olegmmiller
Django
Django
webuploader
symfony & jQuery (phpDay)
symfony & jQuery (phpDay)
Massimiliano Arione
Advanced and Hidden WordPress APIs
Advanced and Hidden WordPress APIs
andrewnacin
Haml & Sass presentation
Haml & Sass presentation
bryanbibat
HTML 5 & CSS 3
HTML 5 & CSS 3
Kevin van Dijk
5 Reasons To Love CodeIgniter
5 Reasons To Love CodeIgniter
nicdev
[PyConZA 2017] Web Scraping: Unleash your Internet Viking
[PyConZA 2017] Web Scraping: Unleash your Internet Viking
Andrew Collier
Meetup django common_problems(1)
Meetup django common_problems(1)
Eric Satterwhite
Fast by Default
Fast by Default
Abhay Kumar
Building Secure Twitter Apps
Building Secure Twitter Apps
Damon Cortesi
Introduction to HAML
Introduction to HAML
Jon Dean
Adventurous Merb
Adventurous Merb
Matt Todd
Preparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for Translation
Brian Hogg
Seasion5
Seasion5
สอนทำโปรเจคจบ วิทคอมไอทีคอมธุรกิจ
Introduction To Lamp
Introduction To Lamp
Amzad Hossain
GEOMETRY_ARHIMED
GEOMETRY_ARHIMED
viktoriya71
Evolution - Η Εξέλιξη της Ζωής
Evolution - Η Εξέλιξη της Ζωής
neutrinoteam
Mais conteúdo relacionado
Mais procurados
Page Caching Resurrected
Page Caching Resurrected
Ben Scofield
Php Basic Security
Php Basic Security
mussawir20
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)
Michael Wales
Apache Camel - WJax 2008
Apache Camel - WJax 2008
inovex GmbH
Create a web-app with Cgi Appplication
Create a web-app with Cgi Appplication
olegmmiller
Django
Django
webuploader
symfony & jQuery (phpDay)
symfony & jQuery (phpDay)
Massimiliano Arione
Advanced and Hidden WordPress APIs
Advanced and Hidden WordPress APIs
andrewnacin
Haml & Sass presentation
Haml & Sass presentation
bryanbibat
HTML 5 & CSS 3
HTML 5 & CSS 3
Kevin van Dijk
5 Reasons To Love CodeIgniter
5 Reasons To Love CodeIgniter
nicdev
[PyConZA 2017] Web Scraping: Unleash your Internet Viking
[PyConZA 2017] Web Scraping: Unleash your Internet Viking
Andrew Collier
Meetup django common_problems(1)
Meetup django common_problems(1)
Eric Satterwhite
Fast by Default
Fast by Default
Abhay Kumar
Building Secure Twitter Apps
Building Secure Twitter Apps
Damon Cortesi
Introduction to HAML
Introduction to HAML
Jon Dean
Adventurous Merb
Adventurous Merb
Matt Todd
Preparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for Translation
Brian Hogg
Seasion5
Seasion5
สอนทำโปรเจคจบ วิทคอมไอทีคอมธุรกิจ
Introduction To Lamp
Introduction To Lamp
Amzad Hossain
Mais procurados
(20)
Page Caching Resurrected
Page Caching Resurrected
Php Basic Security
Php Basic Security
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)
Apache Camel - WJax 2008
Apache Camel - WJax 2008
Create a web-app with Cgi Appplication
Create a web-app with Cgi Appplication
Django
Django
symfony & jQuery (phpDay)
symfony & jQuery (phpDay)
Advanced and Hidden WordPress APIs
Advanced and Hidden WordPress APIs
Haml & Sass presentation
Haml & Sass presentation
HTML 5 & CSS 3
HTML 5 & CSS 3
5 Reasons To Love CodeIgniter
5 Reasons To Love CodeIgniter
[PyConZA 2017] Web Scraping: Unleash your Internet Viking
[PyConZA 2017] Web Scraping: Unleash your Internet Viking
Meetup django common_problems(1)
Meetup django common_problems(1)
Fast by Default
Fast by Default
Building Secure Twitter Apps
Building Secure Twitter Apps
Introduction to HAML
Introduction to HAML
Adventurous Merb
Adventurous Merb
Preparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for Translation
Seasion5
Seasion5
Introduction To Lamp
Introduction To Lamp
Destaque
GEOMETRY_ARHIMED
GEOMETRY_ARHIMED
viktoriya71
Evolution - Η Εξέλιξη της Ζωής
Evolution - Η Εξέλιξη της Ζωής
neutrinoteam
The Sunset
The Sunset
diberrymuffin59
Libertad de expresión
Libertad de expresión
Emilio Gil (unjubilado)
Oni nushdautsa v zashite
Oni nushdautsa v zashite
viktoriya71
Durmak Yok Yolsuzluga Devam
Durmak Yok Yolsuzluga Devam
millitrk
TANET - Khai thue GTGT - 07.2010
TANET - Khai thue GTGT - 07.2010
Pham Ngoc Quang
Rio Omo Hans Sylvester
Rio Omo Hans Sylvester
mariorui
A/B Testing 101
A/B Testing 101
Josue Sierra
#cetis12 badge session summary
#cetis12 badge session summary
Simon Grant
De paso por Astorga
De paso por Astorga
Emilio Gil (unjubilado)
food
food
svetlsvet
Folleto de 1953
Folleto de 1953
Emilio Gil (unjubilado)
Hui
Hui
lohrman
Podcasting intro 23feb11
Podcasting intro 23feb11
burkso2
Platfrom for community-based solutions
Platfrom for community-based solutions
Latte Media
太平天國專題報告 – Week 1 version 1001
太平天國專題報告 – Week 1 version 1001
Yi-Chi Tang
Ajax to the Moon
Ajax to the Moon
davejohnson
Adam & Jamie Videos on the 'Net
Adam & Jamie Videos on the 'Net
Ken Kaplan
Maximize PPC Campaigns
Maximize PPC Campaigns
Prabhvir Sahmey
Destaque
(20)
GEOMETRY_ARHIMED
GEOMETRY_ARHIMED
Evolution - Η Εξέλιξη της Ζωής
Evolution - Η Εξέλιξη της Ζωής
The Sunset
The Sunset
Libertad de expresión
Libertad de expresión
Oni nushdautsa v zashite
Oni nushdautsa v zashite
Durmak Yok Yolsuzluga Devam
Durmak Yok Yolsuzluga Devam
TANET - Khai thue GTGT - 07.2010
TANET - Khai thue GTGT - 07.2010
Rio Omo Hans Sylvester
Rio Omo Hans Sylvester
A/B Testing 101
A/B Testing 101
#cetis12 badge session summary
#cetis12 badge session summary
De paso por Astorga
De paso por Astorga
food
food
Folleto de 1953
Folleto de 1953
Hui
Hui
Podcasting intro 23feb11
Podcasting intro 23feb11
Platfrom for community-based solutions
Platfrom for community-based solutions
太平天國專題報告 – Week 1 version 1001
太平天國專題報告 – Week 1 version 1001
Ajax to the Moon
Ajax to the Moon
Adam & Jamie Videos on the 'Net
Adam & Jamie Videos on the 'Net
Maximize PPC Campaigns
Maximize PPC Campaigns
Semelhante a Changing Template Engine
Php Crash Course
Php Crash Course
mussawir20
Building Web Interface On Rails
Building Web Interface On Rails
Wen-Tien Chang
JSP Custom Tags
JSP Custom Tags
BG Java EE Course
Control Structures In Php 2
Control Structures In Php 2
Digital Insights - Digital Marketing Agency
ImplementingChangeTrackingAndFlagging
ImplementingChangeTrackingAndFlagging
Suite Solutions
Template Toolkit
Template Toolkit
dwm042
XML processing with perl
XML processing with perl
Joe Jiang
KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7
phuphax
WordPress Standardized Loop API
WordPress Standardized Loop API
Chris Jean
Lecture4
Lecture4
Châu Thanh Chương
Forum Presentation
Forum Presentation
Angus Pratt
Drupal 7 Theming - what's new
Drupal 7 Theming - what's new
Marek Sotak
Struts2
Struts2
yuvalb
Flex For Flash Developers Ff 2006 Final
Flex For Flash Developers Ff 2006 Final
ematrix
Combres
Combres
Buu Nguyen
John Rowley Notes
John Rowley Notes
IBAT College
Ajax ons2
Ajax ons2
Chad Davis
Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0
Cathie101
PHP MySQL
PHP MySQL
Md. Sirajus Salayhin
JavaScript
JavaScript
Doncho Minkov
Semelhante a Changing Template Engine
(20)
Php Crash Course
Php Crash Course
Building Web Interface On Rails
Building Web Interface On Rails
JSP Custom Tags
JSP Custom Tags
Control Structures In Php 2
Control Structures In Php 2
ImplementingChangeTrackingAndFlagging
ImplementingChangeTrackingAndFlagging
Template Toolkit
Template Toolkit
XML processing with perl
XML processing with perl
KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7
WordPress Standardized Loop API
WordPress Standardized Loop API
Lecture4
Lecture4
Forum Presentation
Forum Presentation
Drupal 7 Theming - what's new
Drupal 7 Theming - what's new
Struts2
Struts2
Flex For Flash Developers Ff 2006 Final
Flex For Flash Developers Ff 2006 Final
Combres
Combres
John Rowley Notes
John Rowley Notes
Ajax ons2
Ajax ons2
Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0
PHP MySQL
PHP MySQL
JavaScript
JavaScript
Changing Template Engine
1.
テンプレートエンジンの移行 Changing Template
Engine YAPC::Asia 2010 Tokyo Takatsugu Shigeta
2.
@comewalk #sixapartkk #typepad
3.
Q. Have you
used any template engine?
4.
Q. Which engine?
5.
HTML::Template Template Text::MicroTemplate
Tenjin MENTA::Template Mojo::Template MTML Text::ClearSilver Text::Xslate
6.
Migrating from HTML::Template
to Template Toolkit
7.
HTML::Template
8.
<TMPL_VAR NAME=foo> TMPL_VAR,
TMPL_IF, TMPL_UNLESS, TMPL_ELSE, TMPL_LOOP, TMPL_INCLUDE
9.
10.
11.
Template Toolkit
12.
[% foo %]
GET, IF, UNLESS, ELSE, FOR, INCLUDE (and others )
13.
14.
15.
History
16.
17.
Motivation
18.
* borrow their
templates * unnecessary code on handler
19.
borrow their templates
20.
21.
22.
schedule
23.
This graph is
rough estimates :)
24.
operations
25.
run convert script
26.
TMPL_VAR -> [%
foo %] TMPL_IF -> [% IF %] TMPL_UNLESS -> [% UNLESS %] TMPL_ELSE ->[% ELSE %] TMPL_LOOP -> [% FOR %] TMPL_INCLUDE -> [% INCLUDE%] MT_TRANS -> [% |loc %]foo[% END %]
27.
28.
29.
Tips
30.
* Don't use
reserved keywords * Don't use camel case variable name * Don't use underscore at first letter like _foo * MT_TRANS multi params
31.
32.
33.
34.
35.
36.
37.
38.
39.
sequence
40.
41.
TypePad::View::TT A wrapper
class for TT which bridges the gap between HTML::Template and Template Toolkit
42.
43.
44.
45.
46.
sequence [after]
47.
48.
Benchmark
49.
compare processing speed
Template: 0.0173818 HTML::Template: 0.0157874 using Time::HiRes CentOS 4.6 (64bit), Perl v5.8.9, $Template::VERSION 2.15 $HTML::Template::VERSION 2.8
50.
in near future,
Text::Xslate
51.
52.
Questions?
53.
Baixar agora