mirror of
https://github.com/OlafvdSpek/ctemplate.git
synced 2025-10-05 19:16:54 +08:00
Tue Jan 24 16:00:51 2012 Google Inc. <google-ctemplate@googlegroups.com>
* ctemplate: version 2.0 release * Changed the 'official' ctemplate email in setup.py/etc * Rewrote docs to refer to Ctemplate, not Google Template * Renamed google-ctemplate.sln to ctemplate.sln * Changed copyright text to reflect Google's relinquished ownership
This commit is contained in:
parent
48312e9ad3
commit
6f7d6f6754
|
@ -1,3 +1,11 @@
|
|||
Tue Jan 24 16:00:51 2012 Google Inc. <google-ctemplate@googlegroups.com>
|
||||
|
||||
* ctemplate: version 2.0 release
|
||||
* Changed the 'official' ctemplate email in setup.py/etc
|
||||
* Rewrote docs to refer to Ctemplate, not Google Template
|
||||
* Renamed google-ctemplate.sln to ctemplate.sln
|
||||
* Changed copyright text to reflect Google's relinquished ownership
|
||||
|
||||
Thu Dec 22 14:03:27 2011 Google Inc. <opensource@google.com>
|
||||
|
||||
* ctemplate: version 1.1 release
|
||||
|
|
|
@ -70,7 +70,7 @@ noinst_LTLIBRARIES =
|
|||
bin_PROGRAMS =
|
||||
bin_SCRIPTS =
|
||||
## The location of the windows project file for each binary we make
|
||||
WINDOWS_PROJECTS = google-ctemplate.sln
|
||||
WINDOWS_PROJECTS = ctemplate.sln
|
||||
|
||||
|
||||
## unittests you want to run when people type 'make check'.
|
||||
|
|
|
@ -836,7 +836,7 @@ noinst_LTLIBRARIES = libctemplate_debug.la \
|
|||
libctemplate_nothreads_debug.la libctemplate_testing.la \
|
||||
libctemplate_testing_nothreads.la
|
||||
bin_SCRIPTS = src/template-converter
|
||||
WINDOWS_PROJECTS = google-ctemplate.sln \
|
||||
WINDOWS_PROJECTS = ctemplate.sln \
|
||||
vsprojects/libctemplate/libctemplate.vcproj \
|
||||
vsprojects/make_tpl_varname_h/make_tpl_varname_h.vcproj \
|
||||
vsprojects/diff_tpl_auto_escape/diff_tpl_auto_escape.vcproj \
|
||||
|
|
29
NEWS
29
NEWS
|
@ -1,4 +1,30 @@
|
|||
== 22 December 2011 ==
|
||||
== 24 January 2012 ==
|
||||
|
||||
I've just released ctemplate 2.0. It has no functional changes from
|
||||
ctemplate 1.2.
|
||||
|
||||
The `google-ctemplate` project has been renamed to `ctemplate`. I
|
||||
(csilvers) am stepping down as maintainer, to be replaced by Olaf van
|
||||
der Spek. Welcome to the team, Olaf! I've been impressed by your
|
||||
contributions to the project discussions and code to date, and look
|
||||
forward to having you on the team.
|
||||
|
||||
I bumped the major version number up to 2 to reflect the new community
|
||||
ownership of the project. All the
|
||||
[http://google-ctemplate.googlecode.com/svn/tags/ctemplate-2.0/ChangeLog changes]
|
||||
are related to the renaming.
|
||||
|
||||
|
||||
=== 18 January 2011 ===
|
||||
|
||||
The `google-ctemplate` Google Code page has been renamed to
|
||||
`ctemplate`, in preparation for the project being renamed to
|
||||
`ctemplate`. In the coming weeks, I'll be stepping down as
|
||||
maintainer for the ctemplate project, and as part of that Google is
|
||||
relinquishing ownership of the project; it will now be entirely
|
||||
community run. The name change reflects that shift.
|
||||
|
||||
=== 22 December 2011 ===
|
||||
|
||||
I've just released ctemplate 1.1. The only functionality change is
|
||||
obscure: when a reload is done (via, say, `ReloadAllIfChanged`), and a
|
||||
|
@ -12,7 +38,6 @@ file if the old file had changed on disk, and would otherwise leave
|
|||
the template alone. Even more minor changes are in the
|
||||
[http://google-ctemplate.googlecode.com/svn/tags/ctemplate-1.1/ChangeLog ChangeLog].
|
||||
|
||||
|
||||
=== 26 August 2011 ===
|
||||
|
||||
I've just released ctemplate 1.0! (I've decided 4 weeks is well
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
This project has been ported to Windows. A working solution file
|
||||
exists in this directory:
|
||||
google-ctemplate.sln
|
||||
ctemplate.sln
|
||||
|
||||
You can load this solution file into either VC++ 7.1 (Visual Studio
|
||||
2003) or VC++ 8.0 (Visual Studio 2005) -- in the latter case, it will
|
||||
|
@ -36,8 +36,8 @@ followed by Template::GetTemplate().
|
|||
I have little experience with Windows programming, so there may be
|
||||
better ways to set this up than I've done! If you run across any
|
||||
problems, please post to the google-ctemplate Google Group, or report
|
||||
them on the google-ctemplate Google Code site:
|
||||
them on the ctemplate Google Code site:
|
||||
http://groups.google.com/group/google-ctemplate
|
||||
http://code.google.com/p/google-ctemplate/issues/list
|
||||
http://code.google.com/p/ctemplate/issues/list
|
||||
|
||||
-- craig
|
||||
|
|
80
configure
vendored
80
configure
vendored
|
@ -1,8 +1,8 @@
|
|||
#! /bin/sh
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.62 for ctemplate 1.1.
|
||||
# Generated by GNU Autoconf 2.62 for ctemplate 2.0.
|
||||
#
|
||||
# Report bugs to <opensource@google.com>.
|
||||
# Report bugs to <google-ctemplate@google.com>.
|
||||
#
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
||||
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
|
@ -745,9 +745,9 @@ SHELL=${CONFIG_SHELL-/bin/sh}
|
|||
# Identity of this package.
|
||||
PACKAGE_NAME='ctemplate'
|
||||
PACKAGE_TARNAME='ctemplate'
|
||||
PACKAGE_VERSION='1.1'
|
||||
PACKAGE_STRING='ctemplate 1.1'
|
||||
PACKAGE_BUGREPORT='opensource@google.com'
|
||||
PACKAGE_VERSION='2.0'
|
||||
PACKAGE_STRING='ctemplate 2.0'
|
||||
PACKAGE_BUGREPORT='google-ctemplate@google.com'
|
||||
|
||||
ac_unique_file="README"
|
||||
# Factoring default headers for most tests.
|
||||
|
@ -1501,7 +1501,7 @@ if test "$ac_init_help" = "long"; then
|
|||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures ctemplate 1.1 to adapt to many kinds of systems.
|
||||
\`configure' configures ctemplate 2.0 to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
|
@ -1571,7 +1571,7 @@ fi
|
|||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of ctemplate 1.1:";;
|
||||
short | recursive ) echo "Configuration of ctemplate 2.0:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
|
@ -1614,7 +1614,7 @@ Some influential environment variables:
|
|||
Use these variables to override the choices made by `configure' or to help
|
||||
it to find libraries and programs with nonstandard names/locations.
|
||||
|
||||
Report bugs to <opensource@google.com>.
|
||||
Report bugs to <google-ctemplate@google.com>.
|
||||
_ACEOF
|
||||
ac_status=$?
|
||||
fi
|
||||
|
@ -1677,7 +1677,7 @@ fi
|
|||
test -n "$ac_init_help" && exit $ac_status
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
ctemplate configure 1.1
|
||||
ctemplate configure 2.0
|
||||
generated by GNU Autoconf 2.62
|
||||
|
||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
||||
|
@ -1691,7 +1691,7 @@ cat >config.log <<_ACEOF
|
|||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by ctemplate $as_me 1.1, which was
|
||||
It was created by ctemplate $as_me 2.0, which was
|
||||
generated by GNU Autoconf 2.62. Invocation command line was
|
||||
|
||||
$ $0 $@
|
||||
|
@ -2496,7 +2496,7 @@ fi
|
|||
|
||||
# Define the identity of the package.
|
||||
PACKAGE='ctemplate'
|
||||
VERSION='1.1'
|
||||
VERSION='2.0'
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
|
@ -16092,9 +16092,9 @@ $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
|
|||
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
||||
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
||||
( cat <<\_ASBOX
|
||||
## ------------------------------------ ##
|
||||
## Report this to opensource@google.com ##
|
||||
## ------------------------------------ ##
|
||||
## ------------------------------------------ ##
|
||||
## Report this to google-ctemplate@google.com ##
|
||||
## ------------------------------------------ ##
|
||||
_ASBOX
|
||||
) | sed "s/^/$as_me: WARNING: /" >&2
|
||||
;;
|
||||
|
@ -16242,9 +16242,9 @@ $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
|
|||
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
||||
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
||||
( cat <<\_ASBOX
|
||||
## ------------------------------------ ##
|
||||
## Report this to opensource@google.com ##
|
||||
## ------------------------------------ ##
|
||||
## ------------------------------------------ ##
|
||||
## Report this to google-ctemplate@google.com ##
|
||||
## ------------------------------------------ ##
|
||||
_ASBOX
|
||||
) | sed "s/^/$as_me: WARNING: /" >&2
|
||||
;;
|
||||
|
@ -17269,9 +17269,9 @@ $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
|
|||
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
||||
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
||||
( cat <<\_ASBOX
|
||||
## ------------------------------------ ##
|
||||
## Report this to opensource@google.com ##
|
||||
## ------------------------------------ ##
|
||||
## ------------------------------------------ ##
|
||||
## Report this to google-ctemplate@google.com ##
|
||||
## ------------------------------------------ ##
|
||||
_ASBOX
|
||||
) | sed "s/^/$as_me: WARNING: /" >&2
|
||||
;;
|
||||
|
@ -17419,9 +17419,9 @@ $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
|
|||
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
||||
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
||||
( cat <<\_ASBOX
|
||||
## ------------------------------------ ##
|
||||
## Report this to opensource@google.com ##
|
||||
## ------------------------------------ ##
|
||||
## ------------------------------------------ ##
|
||||
## Report this to google-ctemplate@google.com ##
|
||||
## ------------------------------------------ ##
|
||||
_ASBOX
|
||||
) | sed "s/^/$as_me: WARNING: /" >&2
|
||||
;;
|
||||
|
@ -17569,9 +17569,9 @@ $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
|
|||
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
||||
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
||||
( cat <<\_ASBOX
|
||||
## ------------------------------------ ##
|
||||
## Report this to opensource@google.com ##
|
||||
## ------------------------------------ ##
|
||||
## ------------------------------------------ ##
|
||||
## Report this to google-ctemplate@google.com ##
|
||||
## ------------------------------------------ ##
|
||||
_ASBOX
|
||||
) | sed "s/^/$as_me: WARNING: /" >&2
|
||||
;;
|
||||
|
@ -17719,9 +17719,9 @@ $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
|
|||
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
||||
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
||||
( cat <<\_ASBOX
|
||||
## ------------------------------------ ##
|
||||
## Report this to opensource@google.com ##
|
||||
## ------------------------------------ ##
|
||||
## ------------------------------------------ ##
|
||||
## Report this to google-ctemplate@google.com ##
|
||||
## ------------------------------------------ ##
|
||||
_ASBOX
|
||||
) | sed "s/^/$as_me: WARNING: /" >&2
|
||||
;;
|
||||
|
@ -17869,9 +17869,9 @@ $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
|
|||
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
||||
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
||||
( cat <<\_ASBOX
|
||||
## ------------------------------------ ##
|
||||
## Report this to opensource@google.com ##
|
||||
## ------------------------------------ ##
|
||||
## ------------------------------------------ ##
|
||||
## Report this to google-ctemplate@google.com ##
|
||||
## ------------------------------------------ ##
|
||||
_ASBOX
|
||||
) | sed "s/^/$as_me: WARNING: /" >&2
|
||||
;;
|
||||
|
@ -18019,9 +18019,9 @@ $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
|
|||
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
||||
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
||||
( cat <<\_ASBOX
|
||||
## ------------------------------------ ##
|
||||
## Report this to opensource@google.com ##
|
||||
## ------------------------------------ ##
|
||||
## ------------------------------------------ ##
|
||||
## Report this to google-ctemplate@google.com ##
|
||||
## ------------------------------------------ ##
|
||||
_ASBOX
|
||||
) | sed "s/^/$as_me: WARNING: /" >&2
|
||||
;;
|
||||
|
@ -18169,9 +18169,9 @@ $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
|
|||
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
||||
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
||||
( cat <<\_ASBOX
|
||||
## ------------------------------------ ##
|
||||
## Report this to opensource@google.com ##
|
||||
## ------------------------------------ ##
|
||||
## ------------------------------------------ ##
|
||||
## Report this to google-ctemplate@google.com ##
|
||||
## ------------------------------------------ ##
|
||||
_ASBOX
|
||||
) | sed "s/^/$as_me: WARNING: /" >&2
|
||||
;;
|
||||
|
@ -20263,7 +20263,7 @@ exec 6>&1
|
|||
# report actual input values of CONFIG_FILES etc. instead of their
|
||||
# values after options handling.
|
||||
ac_log="
|
||||
This file was extended by ctemplate $as_me 1.1, which was
|
||||
This file was extended by ctemplate $as_me 2.0, which was
|
||||
generated by GNU Autoconf 2.62. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
|
@ -20316,7 +20316,7 @@ Report bugs to <bug-autoconf@gnu.org>."
|
|||
_ACEOF
|
||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||
ac_cs_version="\\
|
||||
ctemplate config.status 1.1
|
||||
ctemplate config.status 2.0
|
||||
configured by $0, generated by GNU Autoconf 2.62,
|
||||
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# make sure we're interpreted by some minimal autoconf
|
||||
AC_PREREQ(2.57)
|
||||
|
||||
AC_INIT(ctemplate, 1.1, opensource@google.com)
|
||||
AC_INIT(ctemplate, 2.0, google-ctemplate@google.com)
|
||||
# Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
|
||||
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
||||
SO_VERSION=1:3:1
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
(require 'font-lock))
|
||||
|
||||
(defgroup tpl-mode nil
|
||||
"Major mode for editing Google CTemplate files"
|
||||
"Major mode for editing CTemplate files"
|
||||
:group 'languages)
|
||||
|
||||
(defvar tpl-mode-version "1.0"
|
||||
|
@ -242,7 +242,7 @@
|
|||
(put 'tpl-mode 'font-lock-defaults '(tpl-font-lock-keywords nil t))
|
||||
|
||||
(defun tpl-mode ()
|
||||
"Major mode for editing Google CTemplate file."
|
||||
"Major mode for editing CTemplate file."
|
||||
(interactive)
|
||||
(kill-all-local-variables)
|
||||
(use-local-map tpl-mode-map)
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
<title>Guide to using Auto Escape</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="http://www.google.com/favicon.ico" type="image/x-icon"
|
||||
rel="shortcut icon">
|
||||
<link href="designstyle.css" type="text/css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
ol.bluelist li {
|
||||
|
|
|
@ -71,12 +71,6 @@ UL.nobullets {
|
|||
margin-left: -1em;
|
||||
}
|
||||
|
||||
/*
|
||||
body:after {
|
||||
content: "Google Confidential";
|
||||
}
|
||||
*/
|
||||
|
||||
/* pretty printing styles. See prettify.js */
|
||||
.str { color: #080; }
|
||||
.kwd { color: #008; }
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
<title>Template Examples</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="http://www.google.com/favicon.ico" type="image/x-icon"
|
||||
rel="shortcut icon">
|
||||
<link href="designstyle.css" type="text/css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
ol.bluelist li {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<html>
|
||||
<head>
|
||||
<title>How To Use the Google Template System</title>
|
||||
<title>How To Use the Ctemplate (formerly Google Template) System</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="designstyle.css" type="text/css" rel="stylesheet">
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
<body>
|
||||
|
||||
<h1>How To Use the Google Template System</h1>
|
||||
<h1>How To Use the Ctemplate (formerly Google Template) System</h1>
|
||||
<small>(as of
|
||||
<script type=text/javascript>
|
||||
var lm = new Date(document.lastModified);
|
||||
|
@ -57,7 +57,7 @@ be to everybody's tastes. However, while this design limits the power
|
|||
of the template <i>language</i>, it does not limit the power or
|
||||
flexibility of the template <i>system</i>. This system supports
|
||||
arbitrarily complex text formatting. Many Google applications,
|
||||
including the "main" Google web search, use this system exclusively
|
||||
including the "main" Google web search, use this system
|
||||
for formatting output.</p>
|
||||
|
||||
<p>Finally, this system is designed with an eye towards efficiency.
|
||||
|
@ -67,7 +67,7 @@ both memory use and memory fragmentation.</p>
|
|||
|
||||
<h2> Overview </h2>
|
||||
|
||||
<p>There are two main parts to the Google Template System:</p>
|
||||
<p>There are two main parts to the Ctemplate System:</p>
|
||||
|
||||
<ul>
|
||||
<li> Templates
|
||||
|
@ -107,7 +107,7 @@ as <code>11/20/2005</code>, are <b>dictionary values</b>.</p>
|
|||
|
||||
<p>A few points are clear even from this simple example:</p>
|
||||
<ol>
|
||||
<li> Dictionary keys and values are strings; the Google template
|
||||
<li> Dictionary keys and values are strings; the Ctemplate
|
||||
system is not typed. </li>
|
||||
<li> Dictionary values come already formatted. It was up to the
|
||||
application code to decide how to format the value for
|
||||
|
@ -210,7 +210,7 @@ a single template to produce formatted output.</p>
|
|||
|
||||
<h3>Expanding a Template</h3>
|
||||
|
||||
<p>A program using Google Templates typically reads in templates at
|
||||
<p>A program using Ctemplate typically reads in templates at
|
||||
load time. During the course of program execution, the program will
|
||||
repeatedly perform the following two steps: first, instantiate a data
|
||||
dictionary, and second, apply the dictionary to the template to
|
||||
|
@ -891,7 +891,7 @@ tests:</p>
|
|||
|
||||
<h2> <A NAME="security">Security Considerations</A> </h2>
|
||||
|
||||
<p>Like all web applications, programs that use the Google Template
|
||||
<p>Like all web applications, programs that use the Ctemplate
|
||||
System to create HTML documents can be vulnerable to
|
||||
Cross-Site-Scripting (XSS) attacks unless data inserted into a
|
||||
template is appropriately sanitized and/or escaped. Which specific
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<html>
|
||||
<head>
|
||||
<title>How To Use the Google Template System</title>
|
||||
<title>How To Use the Ctemplate (formerly Google Template) System</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="designstyle.css" type="text/css" rel="stylesheet">
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Google Template System</title>
|
||||
<title>Ctemplate (formerly Google Template) System</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="http://www.google.com/favicon.ico" type="image/x-icon"
|
||||
rel="shortcut icon">
|
||||
<link href="designstyle.css" type="text/css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
ol.bluelist li {
|
||||
|
@ -24,14 +22,18 @@
|
|||
</head>
|
||||
<body>
|
||||
|
||||
<h1> <a name="Google_Template_System"></a>Google Template System </h1>
|
||||
<h1> <a name="Ctemplate_System"></a>Ctemplate System </h1>
|
||||
<center><strong>Status: Current</strong>
|
||||
<small>(as of 25 April 2008)</small></center>
|
||||
<br>
|
||||
|
||||
Welcome to the Google C++ template system! As a quick start, here's a
|
||||
small but complete program that uses this template library. For more
|
||||
details see, the links below.
|
||||
<p>Welcome to the C++ CTemplate system! (This project was originally
|
||||
called Google Templates, due to its origin as the template system used
|
||||
for Google search result pages, but now has a more general name
|
||||
matching its community-owned nature.)</p>
|
||||
|
||||
<p>As a quick start, here's a small but complete program that uses this
|
||||
template library. For more details see, the links below.</p>
|
||||
|
||||
<h3>Template file <code>example.tpl</code></h3>
|
||||
<pre>
|
||||
|
@ -83,8 +85,8 @@ libraries.</p>
|
|||
<h2>In-depth Documentation</h2>
|
||||
|
||||
<ol>
|
||||
<li> <A HREF="howto.html">Howto</A>: Introduction to the Google
|
||||
Template system, and a tutorial for using it. </li>
|
||||
<li> <A HREF="howto.html">Howto</A>: Introduction to the
|
||||
Ctemplate system, and a tutorial for using it. </li>
|
||||
|
||||
<li> <A HREF="auto_escape.html">Auto Escape</A>: Guide to using
|
||||
the optional Auto Escape mode to protect your web application
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<html>
|
||||
<head>
|
||||
<title>Google Template System Reference Guide</title>
|
||||
<title>Ctemplate System Reference Guide</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="designstyle.css" type="text/css" rel="stylesheet">
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
<body>
|
||||
|
||||
<h1>Google Template System Reference Guide</h1>
|
||||
<h1>Ctemplate System Reference Guide</h1>
|
||||
<small>(as of
|
||||
<script type=text/javascript>
|
||||
var lm = new Date(document.lastModified);
|
||||
|
@ -74,7 +74,7 @@ option is set, which puts template code in namespace
|
|||
<h3> The Template Language </h3>
|
||||
|
||||
<p>Templates are strings that contain special formatting code called
|
||||
<em>template markers</em>. In the Google Template System, template
|
||||
<em>template markers</em>. In the Ctemplate System, template
|
||||
strings are usually read from a file.</p>
|
||||
|
||||
<p>Anything found in a template of the form {{...}} is
|
||||
|
@ -1454,7 +1454,7 @@ implementation, for emitting to a string.</p>
|
|||
<code>StaticTemplateString</code> Classes</A> </h2>
|
||||
|
||||
<p><code>TemplateString</code> is a string-like implementation.
|
||||
Google Template uses <code>TemplateString</code> almost exclusively,
|
||||
Ctemplate uses <code>TemplateString</code> almost exclusively,
|
||||
internally. Many of the public API methods, such as
|
||||
<code>TemplateDictionary::SetValue()</code>, also take
|
||||
<code>TemplateString</code> as input. <code>TemplateString</code>
|
||||
|
@ -1469,7 +1469,7 @@ length, you can save a bit of work by explicitly constructing a
|
|||
|
||||
<p>Some compile-time tools work with <code>TemplateString</code> to
|
||||
offload computation from runtime to compile-time. This is possible
|
||||
because the Google Template code often stores a hash of a string
|
||||
because the Ctemplate code often stores a hash of a string
|
||||
rather than a string directly. For static, immutable strings,
|
||||
<code>TemplateString</code> can store a pre-computed hash value. This
|
||||
functionality is used by <A
|
||||
|
|
|
@ -2,11 +2,9 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Tips and Guidelines for Using the Google Template System</title>
|
||||
<title>Tips and Guidelines for Using the Ctemplate System</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="http://www.google.com/favicon.ico" type="image/x-icon"
|
||||
rel="shortcut icon">
|
||||
<link href="designstyle.css" type="text/css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
ol.bluelist li {
|
||||
|
@ -26,7 +24,7 @@
|
|||
|
||||
<body>
|
||||
|
||||
<h1>Tips and Guidelines for Using the Google Template System</h1>
|
||||
<h1>Tips and Guidelines for Using the Ctemplate System</h1>
|
||||
<small>(as of 10 March 2010)</small>
|
||||
|
||||
<br>
|
||||
|
@ -87,7 +85,7 @@ is important that you use that convention exactly if you use the
|
|||
|
||||
<h3> Processing Phases </h3>
|
||||
|
||||
<p>Typically a program using the Google Template System will
|
||||
<p>Typically a program using the Ctemplate System will
|
||||
perform the following phases, usually in this order:</p>
|
||||
|
||||
<ol>
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
<title>Cross-Site Scripting Resources</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="http://www.google.com/favicon.ico" type="image/x-icon"
|
||||
rel="shortcut icon">
|
||||
<link href="designstyle.css" type="text/css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
<!--
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
ctemplate (2.0-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Google Inc. and others <google-ctemplate@googlegroups.com> Tue, 24 Jan 2012 16:00:51 -0800
|
||||
|
||||
ctemplate (1.1-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Source: ctemplate
|
||||
Section: libdevel
|
||||
Priority: optional
|
||||
Maintainer: Google Inc. <google-ctemplate@googlegroups.com>
|
||||
Maintainer: Google Inc. and others <google-ctemplate@googlegroups.com>
|
||||
Build-Depends: debhelper (>= 4.0.0)
|
||||
Standards-Version: 3.6.1
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
This package was debianized by Google Inc. <opensource@google.com> on
|
||||
13 March 2006.
|
||||
This package was debianized by Craig Silverstein <google-ctemplate@google.com>
|
||||
on Tue, 24 Jan 2012 16:00:51 -0800.
|
||||
|
||||
It was downloaded from http://code.google.com/
|
||||
It was downloaded from http://code.google.com/p/ctemplate/downloads/list
|
||||
|
||||
Upstream Author: opensource@google.com
|
||||
Upstream Author: google-ctemplate@google.com
|
||||
|
||||
Copyright (c) 2006, Google Inc.
|
||||
All rights reserved.
|
||||
|
|
|
@ -7,10 +7,10 @@ Summary: Simple but powerful template language for C++
|
|||
Version: %VERSION
|
||||
Release: %rel
|
||||
Group: Development/Libraries
|
||||
URL: http://code.google.com/p/google-ctemplate
|
||||
URL: http://code.google.com/p/ctemplate
|
||||
License: BSD
|
||||
Vendor: Google
|
||||
Packager: Google Inc. <google-ctemplate@googlegroups.com>
|
||||
Vendor: Google Inc. and others
|
||||
Packager: Google Inc. and others <google-ctemplate@googlegroups.com>
|
||||
Source: http://%{NAME}.googlecode.com/files/%{NAME}-%{VERSION}.tar.gz
|
||||
Distribution: Redhat 7 and above.
|
||||
Buildroot: %{_tmppath}/%{name}-root
|
||||
|
|
|
@ -81,7 +81,7 @@ template class __declspec(dllexport) std::vector<std::string>;\n\
|
|||
eval "$varname='$value'"
|
||||
done
|
||||
|
||||
# Process all the .in files in the "google" subdirectory
|
||||
# Process all the .in files in the "ctemplate" subdirectory
|
||||
mkdir -p "$1/windows/ctemplate"
|
||||
for file in "$1"/ctemplate/*.in; do
|
||||
echo "Processing $file"
|
||||
|
|
Loading…
Reference in New Issue
Block a user