menu 简单麦麦
account_circle

Perl模板工具包-Perl Template Toolkit

帮助2597人找到了他们想要的文件
上传于 2020-02-29 28次下载 4525次围观
文件编号:2220
文件详情
标题(title):Perl Template Toolkit
Perl模板工具包
作者(author):Cross, Dave, Chamberlain, Darren, Wardley, Andy & Dave Cross & Andy Wardley
出版社(publisher):O'Reilly Media, Inc
大小(size):1 MB (1307851 bytes)
格式(extension):epub
注意:如果文件下载完成后为无法打开的格式,请修改后缀名为格式对应后缀

Among the many different approaches to "templating" with Perl--such as Embperl, Mason, HTML::Template, and hundreds of other lesser known systems--the Template Toolkit is widely recognized as one of the most versatile. Like other templating systems, the Template Toolkit allows programmers to embed Perl code and custom macros into HTML documents in order to create customized documents on the fly. But unlike the others, the Template Toolkit is as facile at producing HTML as it is at producing XML, PDF, or any other output format. And because it has its own simple templating language, templates.  Read more...
Abstract: Among the many different approaches to "templating" with Perl--such as Embperl, Mason, HTML::Template, and hundreds of other lesser known systems--the Template Toolkit is widely recognized as one of the most versatile. Like other templating systems, the Template Toolkit allows programmers to embed Perl code and custom macros into HTML documents in order to create customized documents on the fly. But unlike the others, the Template Toolkit is as facile at producing HTML as it is at producing XML, PDF, or any other output format. And because it has its own simple templating language, templates
Table of contents :
Content: Table of Contents
Preface
Audience
About this Book
Conventions Used in This Book
Comments and Questions
Acknowledgments
Andy Wardley
Darren Chamberlain
David Cross
Chapter 1: Getting Started with the Template Toolkit
What the Template Toolkit Does
The Templating Ecosystem
The Template Toolkit Is for More Than HTML
The Template Toolkit Lets You Choose Your Separation
Nonprogrammers Can Maintain Templates
The Template Toolkit Is Easy to Extend
Installing the Template Toolkit
Downloading
Installing
Documentation and Support
Viewing the Documentation. Overview of the DocumentationAccessing the Mailing List
Using the Template Toolkit
tpage
ttree
The Template Module
Template configuration options
Apache::Template Module
The Template Toolkit Language
Template Variables
Complex Variables
Lists
Hashes
Nesting list and hash definitions
Dynamic Variables
Virtual Methods
Template Directives
Variable Directives
Template Processing Directives
Loops
Conditionals
Filters, Plugins, and Macros
Integrating and Extending the Template Toolkit
Chapter 2: Building a Complete Web Site Using the Template Toolkit
Getting Started. A Single PageA "Hello World" HTML Template
Processing Templates with tpage
Template Components
Headers and Footers
The PROCESS directive
The INSERT directive
Benefits of Modularity
Defining Variables
Configuration Template
Comments
Variable values
Loading the Configuration Template
Merging directives
Generating Many Pages
Creating a Project Directory
ttree Configuration File
Running ttree for the First Time
Using a Build Script
ttree Configuration Directory
Calling ttree Through the Build Script
A Place for Everything, and Everything in Its Place
Running the Build Script. Skipping Unmodified TemplatesAdding Headers and Footers Automatically
Defining META Tags
More Template Components
The INCLUDE Directive
Setting Default Values
The DEFAULT directive
Expressions
The IF Directive
Wrapper and Layout Templates
The WRAPPER Directive
Using an Automatic Wrapper Template
Using Layout Templates
Layout Example
Side-effect wrappers
Separating layout concerns
Plugins and the USE directive
Menu Components
Simple Menu Template
The BLOCK directive
Component Libraries
The EXPOSE_BLOCKS option
The FOREACH Directive
Defining and Using Complex Data. Structured Configuration TemplatesLayered Configuration Templates
Choosing Global Variables Wisely
Passing Around Data Structures
Assessment
Chapter 3: The Template Language
Template Syntax
Text and Directives
Template parser
Parse errors
Caching templates
Flexible syntax
Template Tags
Interpolated Variables
Comments
Whitespace Chomping
Chomping flags
Chomping options
Chomping constants
Multiple Directive Tags
Side-Effect Notation
Capturing Directive Output
Template Filenames
Template Variables
What's in a Name?
Simple Data Types
Complex Data Types
Lists
Hashes.
付费内容
登录后即可获得
一个下载链接

常见问题

  • question_answer
    解压密码,提取码在哪?
    keyboard_arrow_down
    • 均在下载旁边哦,请注意查看,如果没有则是不需要密码
  • question_answer
    文件不符合描述怎么办?
    keyboard_arrow_down
    • 如果有文件问题,可以通过 卖家联系方式 联系卖家,如果 联系不上卖家 或 卖家无法解决则可以在我的订单页面申请售后
  • question_answer
    其他
    keyboard_arrow_down
    • 3.本文件为公益分享,文件由网上采集而来,如有侵权等问题,请及时联系客服删除
      常见问题及官方客服联系方式:点击前往
      售后问题处理方式:点击前往
登陆后下载
微信扫码支付
Perl模板工具包-Perl Template Toolkit
支付金额: 共计:¥0.0

添加收藏

创建新合集

-到底部了哦-