- 授权协议: 未知
- 开发语言: PHP
- 操作系统: 跨平台
- 软件首页: http://www.domtemplate.com/
软件介绍
PHP DOM Template 是一个快速的 PHP 模板引擎,下面是一个 Hello World 的例子:
<?php
// Start the output buffer
ob_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PHP Dom Template (PDT) Library - example01.html</title>
<link rel="stylesheet" type="text/css" href="../css/stylesheet.css" />
</head>
<body>
<p><a href="../example01.php">Back To Example 1</a></p>
<div id="content">
<h1>Hello World</h1>
<p var="helloWorld">Default Text</p>
<p> </p>
<p class="copyright"><a href="http://www.domtemplate.com">Copyright 2008 PHP DOM Template</a></p>
</div>
<p><a href="../example01.php">Back To Example 1</a></p>
</body>
</html>
<?php
// include the Template lib
include_once dirname(__FILE__) . '/../Template.php';
// Create a template from the html in the buffer
$buff = ob_get_clean();
$template = Dk_Dom_Template::loadXml($buff);
$template->replaceText('helloWorld', 'This is the `Hello World` Dynamic text.');
echo $template->getDocument()->saveXML();
?>
Servlet和JSP学习指南
Budi Kurniawan / 崔毅、俞哲皆、俞黎敏 / 机械工业出版社华章公司 / 2013-4-14 / 59.00元
本书是系统学习Servlet和JSP的必读之作。由全球知名的Java技术专家(《How Tomcat Works》作者)亲自执笔,不仅全面解读Servlet 和JSP 的最新技术,重点阐述Java Web开发的重要编程概念和设计模型,而且包含大量可操作性极强的案例。 本书共18章:第1章介绍Servlet API和几个简单的Servlet;第2章讨论Session追踪,以及保持状态的4种技术......一起来看看 《Servlet和JSP学习指南》 这本书的介绍吧!
