ThinkPHP/Library/Vendor/TemplateLite/class.template.php
(开头部分) 24KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/*
* Project: template_lite, a smarter template engine
* File: class.template.php
* Author: Paul Lockaby <paul@paullockaby.com>, Mark Dickenson <akapanamajack@sourceforge.net>
* Copyright: 2003,2004,2005 by Paul Lockaby, 2005,2006 Mark Dickenson
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* The latest version of template_lite can be obtained from:
* http://templatelite.sourceforge.net
*
*/
if (!defined('TEMPLATE_LITE_DIR')) {
define('TEMPLATE_LITE_DIR', dirname(__FILE__) . DIRECTORY_SEPARATOR);
}
class Template_Lite {
// public configuration variables
var $left_delimiter = "{"; // the left delimiter for template tags
var $right_delimiter = "}"; // the right delimiter for template tags
var $cache = false; // whether or not to allow caching of files
var $force_compile = false; // force a compile regardless of saved state
var $template_dir = "templates"; // where the templates are to be found
var $plugins_dir = array("plugins"); // where the plugins are to be found
var $compile_dir = "compiled"; // the directory to store the compiled files in
var $config_dir = "templates"; // where the config files are
var $cache_dir = "cached"; // where cache files are stored
var $config_overwrite = false;
var $config_booleanize = true;
var $config_fix_new_lines = true;
var $config_read_hidden = true;
var $cache_lifetime = 0; // how long the file in cache should be considered "fresh"
var $encode_file_name = true; // Set this to false if you do not want the name of the compiled/cached file to be md5 encoded.
var $php_extract_vars = false; // Set this to true if you want the $this->_tpl variables to be extracted for use by PHP code inside the template.
var $reserved_template_varname = "templatelite";
var $default_modifiers = array();
var $debugging = false;
var $compiler_file = 'class.compiler.php';
var $compiler_class = 'Template_Lite_Compiler';
var $config_class = 'config';
// gzip output configuration
var $send_now = 1;
var $force_compression = 0;
var $compression_level = 9;
后面还有 866 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
