1
0
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:
csilvers 2012-01-25 01:28:24 +00:00
parent 6929c58b0b
commit 8deeef9a2c
23 changed files with 126 additions and 99 deletions

View File

@ -1,2 +1,2 @@
opensource@google.com google-ctemplate@googlegroups.com

View File

@ -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> Thu Dec 22 14:03:27 2011 Google Inc. <opensource@google.com>
* ctemplate: version 1.1 release * ctemplate: version 1.1 release

View File

@ -70,7 +70,7 @@ noinst_LTLIBRARIES =
bin_PROGRAMS = bin_PROGRAMS =
bin_SCRIPTS = bin_SCRIPTS =
## The location of the windows project file for each binary we make ## 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'. ## unittests you want to run when people type 'make check'.

View File

@ -836,7 +836,7 @@ noinst_LTLIBRARIES = libctemplate_debug.la \
libctemplate_nothreads_debug.la libctemplate_testing.la \ libctemplate_nothreads_debug.la libctemplate_testing.la \
libctemplate_testing_nothreads.la libctemplate_testing_nothreads.la
bin_SCRIPTS = src/template-converter bin_SCRIPTS = src/template-converter
WINDOWS_PROJECTS = google-ctemplate.sln \ WINDOWS_PROJECTS = ctemplate.sln \
vsprojects/libctemplate/libctemplate.vcproj \ vsprojects/libctemplate/libctemplate.vcproj \
vsprojects/make_tpl_varname_h/make_tpl_varname_h.vcproj \ vsprojects/make_tpl_varname_h/make_tpl_varname_h.vcproj \
vsprojects/diff_tpl_auto_escape/diff_tpl_auto_escape.vcproj \ vsprojects/diff_tpl_auto_escape/diff_tpl_auto_escape.vcproj \

View File

@ -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 I've just released ctemplate 1.1. The only functionality change is
obscure: when a reload is done (via, say, `ReloadAllIfChanged`), and a 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 the template alone. Even more minor changes are in the
[http://google-ctemplate.googlecode.com/svn/tags/ctemplate-1.1/ChangeLog ChangeLog]. [http://google-ctemplate.googlecode.com/svn/tags/ctemplate-1.1/ChangeLog ChangeLog].
=== 26 August 2011 === === 26 August 2011 ===
I've just released ctemplate 1.0! (I've decided 4 weeks is well I've just released ctemplate 1.0! (I've decided 4 weeks is well

View File

@ -1,6 +1,6 @@
This project has been ported to Windows. A working solution file This project has been ported to Windows. A working solution file
exists in this directory: exists in this directory:
google-ctemplate.sln ctemplate.sln
You can load this solution file into either VC++ 7.1 (Visual Studio 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 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 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 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 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://groups.google.com/group/google-ctemplate
http://code.google.com/p/google-ctemplate/issues/list http://code.google.com/p/ctemplate/issues/list
-- craig -- craig

80
trunk/configure vendored
View File

@ -1,8 +1,8 @@
#! /bin/sh #! /bin/sh
# Guess values for system-dependent variables and create Makefiles. # 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, # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
@ -745,9 +745,9 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package. # Identity of this package.
PACKAGE_NAME='ctemplate' PACKAGE_NAME='ctemplate'
PACKAGE_TARNAME='ctemplate' PACKAGE_TARNAME='ctemplate'
PACKAGE_VERSION='1.1' PACKAGE_VERSION='2.0'
PACKAGE_STRING='ctemplate 1.1' PACKAGE_STRING='ctemplate 2.0'
PACKAGE_BUGREPORT='opensource@google.com' PACKAGE_BUGREPORT='google-ctemplate@google.com'
ac_unique_file="README" ac_unique_file="README"
# Factoring default headers for most tests. # 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. # 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. # This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF 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]... Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1571,7 +1571,7 @@ fi
if test -n "$ac_init_help"; then if test -n "$ac_init_help"; then
case $ac_init_help in case $ac_init_help in
short | recursive ) echo "Configuration of ctemplate 1.1:";; short | recursive ) echo "Configuration of ctemplate 2.0:";;
esac esac
cat <<\_ACEOF cat <<\_ACEOF
@ -1614,7 +1614,7 @@ Some influential environment variables:
Use these variables to override the choices made by `configure' or to help Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations. it to find libraries and programs with nonstandard names/locations.
Report bugs to <opensource@google.com>. Report bugs to <google-ctemplate@google.com>.
_ACEOF _ACEOF
ac_status=$? ac_status=$?
fi fi
@ -1677,7 +1677,7 @@ fi
test -n "$ac_init_help" && exit $ac_status test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
ctemplate configure 1.1 ctemplate configure 2.0
generated by GNU Autoconf 2.62 generated by GNU Autoconf 2.62
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 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 This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. 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 generated by GNU Autoconf 2.62. Invocation command line was
$ $0 $@ $ $0 $@
@ -2496,7 +2496,7 @@ fi
# Define the identity of the package. # Define the identity of the package.
PACKAGE='ctemplate' PACKAGE='ctemplate'
VERSION='1.1' VERSION='2.0'
cat >>confdefs.h <<_ACEOF 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:$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;} $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX ( cat <<\_ASBOX
## ------------------------------------ ## ## ------------------------------------------ ##
## Report this to opensource@google.com ## ## Report this to google-ctemplate@google.com ##
## ------------------------------------ ## ## ------------------------------------------ ##
_ASBOX _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2 ) | 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:$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;} $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX ( cat <<\_ASBOX
## ------------------------------------ ## ## ------------------------------------------ ##
## Report this to opensource@google.com ## ## Report this to google-ctemplate@google.com ##
## ------------------------------------ ## ## ------------------------------------------ ##
_ASBOX _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2 ) | 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:$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;} $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX ( cat <<\_ASBOX
## ------------------------------------ ## ## ------------------------------------------ ##
## Report this to opensource@google.com ## ## Report this to google-ctemplate@google.com ##
## ------------------------------------ ## ## ------------------------------------------ ##
_ASBOX _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2 ) | 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:$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;} $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX ( cat <<\_ASBOX
## ------------------------------------ ## ## ------------------------------------------ ##
## Report this to opensource@google.com ## ## Report this to google-ctemplate@google.com ##
## ------------------------------------ ## ## ------------------------------------------ ##
_ASBOX _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2 ) | 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:$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;} $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX ( cat <<\_ASBOX
## ------------------------------------ ## ## ------------------------------------------ ##
## Report this to opensource@google.com ## ## Report this to google-ctemplate@google.com ##
## ------------------------------------ ## ## ------------------------------------------ ##
_ASBOX _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2 ) | 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:$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;} $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX ( cat <<\_ASBOX
## ------------------------------------ ## ## ------------------------------------------ ##
## Report this to opensource@google.com ## ## Report this to google-ctemplate@google.com ##
## ------------------------------------ ## ## ------------------------------------------ ##
_ASBOX _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2 ) | 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:$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;} $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX ( cat <<\_ASBOX
## ------------------------------------ ## ## ------------------------------------------ ##
## Report this to opensource@google.com ## ## Report this to google-ctemplate@google.com ##
## ------------------------------------ ## ## ------------------------------------------ ##
_ASBOX _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2 ) | 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:$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;} $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX ( cat <<\_ASBOX
## ------------------------------------ ## ## ------------------------------------------ ##
## Report this to opensource@google.com ## ## Report this to google-ctemplate@google.com ##
## ------------------------------------ ## ## ------------------------------------------ ##
_ASBOX _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2 ) | 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:$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;} $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX ( cat <<\_ASBOX
## ------------------------------------ ## ## ------------------------------------------ ##
## Report this to opensource@google.com ## ## Report this to google-ctemplate@google.com ##
## ------------------------------------ ## ## ------------------------------------------ ##
_ASBOX _ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2 ) | sed "s/^/$as_me: WARNING: /" >&2
;; ;;
@ -20263,7 +20263,7 @@ exec 6>&1
# report actual input values of CONFIG_FILES etc. instead of their # report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. # values after options handling.
ac_log=" 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 generated by GNU Autoconf 2.62. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
@ -20316,7 +20316,7 @@ Report bugs to <bug-autoconf@gnu.org>."
_ACEOF _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\ ac_cs_version="\\
ctemplate config.status 1.1 ctemplate config.status 2.0
configured by $0, generated by GNU Autoconf 2.62, configured by $0, generated by GNU Autoconf 2.62,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"

View File

@ -4,7 +4,7 @@
# make sure we're interpreted by some minimal autoconf # make sure we're interpreted by some minimal autoconf
AC_PREREQ(2.57) 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) # 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 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
SO_VERSION=1:3:1 SO_VERSION=1:3:1

View File

@ -25,7 +25,7 @@
(require 'font-lock)) (require 'font-lock))
(defgroup tpl-mode nil (defgroup tpl-mode nil
"Major mode for editing Google CTemplate files" "Major mode for editing CTemplate files"
:group 'languages) :group 'languages)
(defvar tpl-mode-version "1.0" (defvar tpl-mode-version "1.0"
@ -242,7 +242,7 @@
(put 'tpl-mode 'font-lock-defaults '(tpl-font-lock-keywords nil t)) (put 'tpl-mode 'font-lock-defaults '(tpl-font-lock-keywords nil t))
(defun tpl-mode () (defun tpl-mode ()
"Major mode for editing Google CTemplate file." "Major mode for editing CTemplate file."
(interactive) (interactive)
(kill-all-local-variables) (kill-all-local-variables)
(use-local-map tpl-mode-map) (use-local-map tpl-mode-map)

View File

@ -4,8 +4,6 @@
<title>Guide to using Auto Escape</title> <title>Guide to using Auto Escape</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <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"> <link href="designstyle.css" type="text/css" rel="stylesheet">
<style type="text/css"> <style type="text/css">
ol.bluelist li { ol.bluelist li {

View File

@ -71,12 +71,6 @@ UL.nobullets {
margin-left: -1em; margin-left: -1em;
} }
/*
body:after {
content: "Google Confidential";
}
*/
/* pretty printing styles. See prettify.js */ /* pretty printing styles. See prettify.js */
.str { color: #080; } .str { color: #080; }
.kwd { color: #008; } .kwd { color: #008; }

View File

@ -4,8 +4,6 @@
<title>Template Examples</title> <title>Template Examples</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <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"> <link href="designstyle.css" type="text/css" rel="stylesheet">
<style type="text/css"> <style type="text/css">
ol.bluelist li { ol.bluelist li {

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <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"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="designstyle.css" type="text/css" rel="stylesheet"> <link href="designstyle.css" type="text/css" rel="stylesheet">
@ -24,7 +24,7 @@
<body> <body>
<h1>How To Use the Google Template System</h1> <h1>How To Use the Ctemplate (formerly Google Template) System</h1>
<small>(as of <small>(as of
<script type=text/javascript> <script type=text/javascript>
var lm = new Date(document.lastModified); 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 of the template <i>language</i>, it does not limit the power or
flexibility of the template <i>system</i>. This system supports flexibility of the template <i>system</i>. This system supports
arbitrarily complex text formatting. Many Google applications, 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> for formatting output.</p>
<p>Finally, this system is designed with an eye towards efficiency. <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> <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> <ul>
<li> Templates <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> <p>A few points are clear even from this simple example:</p>
<ol> <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> system is not typed. </li>
<li> Dictionary values come already formatted. It was up to the <li> Dictionary values come already formatted. It was up to the
application code to decide how to format the value for 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> <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 load time. During the course of program execution, the program will
repeatedly perform the following two steps: first, instantiate a data repeatedly perform the following two steps: first, instantiate a data
dictionary, and second, apply the dictionary to the template to dictionary, and second, apply the dictionary to the template to
@ -891,7 +891,7 @@ tests:</p>
<h2> <A NAME="security">Security Considerations</A> </h2> <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 System to create HTML documents can be vulnerable to
Cross-Site-Scripting (XSS) attacks unless data inserted into a Cross-Site-Scripting (XSS) attacks unless data inserted into a
template is appropriately sanitized and/or escaped. Which specific template is appropriately sanitized and/or escaped. Which specific

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <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"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="designstyle.css" type="text/css" rel="stylesheet"> <link href="designstyle.css" type="text/css" rel="stylesheet">

View File

@ -1,11 +1,9 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html> <html>
<head> <head>
<title>Google Template System</title> <title>Ctemplate (formerly Google Template) System</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <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"> <link href="designstyle.css" type="text/css" rel="stylesheet">
<style type="text/css"> <style type="text/css">
ol.bluelist li { ol.bluelist li {
@ -24,14 +22,18 @@
</head> </head>
<body> <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> &nbsp; <center><strong>Status: Current</strong> &nbsp;
<small>(as of 25 April 2008)</small></center> <small>(as of 25 April 2008)</small></center>
<br> <br>
Welcome to the Google C++ template system! As a quick start, here's a <p>Welcome to the C++ CTemplate system! (This project was originally
small but complete program that uses this template library. For more called Google Templates, due to its origin as the template system used
details see, the links below. 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> <h3>Template file <code>example.tpl</code></h3>
<pre> <pre>
@ -83,8 +85,8 @@ libraries.</p>
<h2>In-depth Documentation</h2> <h2>In-depth Documentation</h2>
<ol> <ol>
<li> <A HREF="howto.html">Howto</A>: Introduction to the Google <li> <A HREF="howto.html">Howto</A>: Introduction to the
Template system, and a tutorial for using it. </li> Ctemplate system, and a tutorial for using it. </li>
<li> <A HREF="auto_escape.html">Auto Escape</A>: Guide to using <li> <A HREF="auto_escape.html">Auto Escape</A>: Guide to using
the optional Auto Escape mode to protect your web application the optional Auto Escape mode to protect your web application

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <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"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="designstyle.css" type="text/css" rel="stylesheet"> <link href="designstyle.css" type="text/css" rel="stylesheet">
@ -24,7 +24,7 @@
<body> <body>
<h1>Google Template System Reference Guide</h1> <h1>Ctemplate System Reference Guide</h1>
<small>(as of <small>(as of
<script type=text/javascript> <script type=text/javascript>
var lm = new Date(document.lastModified); var lm = new Date(document.lastModified);
@ -74,7 +74,7 @@ option is set, which puts template code in namespace
<h3> The Template Language </h3> <h3> The Template Language </h3>
<p>Templates are strings that contain special formatting code called <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> strings are usually read from a file.</p>
<p>Anything found in a template of the form {{...}} is <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> <code>StaticTemplateString</code> Classes</A> </h2>
<p><code>TemplateString</code> is a string-like implementation. <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 internally. Many of the public API methods, such as
<code>TemplateDictionary::SetValue()</code>, also take <code>TemplateDictionary::SetValue()</code>, also take
<code>TemplateString</code> as input. <code>TemplateString</code> <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 <p>Some compile-time tools work with <code>TemplateString</code> to
offload computation from runtime to compile-time. This is possible 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, rather than a string directly. For static, immutable strings,
<code>TemplateString</code> can store a pre-computed hash value. This <code>TemplateString</code> can store a pre-computed hash value. This
functionality is used by <A functionality is used by <A

View File

@ -2,11 +2,9 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html> <html>
<head> <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"> <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"> <link href="designstyle.css" type="text/css" rel="stylesheet">
<style type="text/css"> <style type="text/css">
ol.bluelist li { ol.bluelist li {
@ -26,7 +24,7 @@
<body> <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> <small>(as of 10 March 2010)</small>
<br> <br>
@ -87,7 +85,7 @@ is important that you use that convention exactly if you use the
<h3> Processing Phases </h3> <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> perform the following phases, usually in this order:</p>
<ol> <ol>

View File

@ -4,8 +4,6 @@
<title>Cross-Site Scripting Resources</title> <title>Cross-Site Scripting Resources</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <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"> <link href="designstyle.css" type="text/css" rel="stylesheet">
<style type="text/css"> <style type="text/css">
<!-- <!--

View File

@ -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 ctemplate (1.1-1) unstable; urgency=low
* New upstream release. * New upstream release.

View File

@ -1,7 +1,7 @@
Source: ctemplate Source: ctemplate
Section: libdevel Section: libdevel
Priority: optional Priority: optional
Maintainer: Google Inc. <google-ctemplate@googlegroups.com> Maintainer: Google Inc. and others <google-ctemplate@googlegroups.com>
Build-Depends: debhelper (>= 4.0.0) Build-Depends: debhelper (>= 4.0.0)
Standards-Version: 3.6.1 Standards-Version: 3.6.1

View File

@ -1,9 +1,9 @@
This package was debianized by Google Inc. <opensource@google.com> on This package was debianized by Craig Silverstein <google-ctemplate@google.com>
13 March 2006. 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. Copyright (c) 2006, Google Inc.
All rights reserved. All rights reserved.

View File

@ -7,10 +7,10 @@ Summary: Simple but powerful template language for C++
Version: %VERSION Version: %VERSION
Release: %rel Release: %rel
Group: Development/Libraries Group: Development/Libraries
URL: http://code.google.com/p/google-ctemplate URL: http://code.google.com/p/ctemplate
License: BSD License: BSD
Vendor: Google Vendor: Google Inc. and others
Packager: Google Inc. <google-ctemplate@googlegroups.com> Packager: Google Inc. and others <google-ctemplate@googlegroups.com>
Source: http://%{NAME}.googlecode.com/files/%{NAME}-%{VERSION}.tar.gz Source: http://%{NAME}.googlecode.com/files/%{NAME}-%{VERSION}.tar.gz
Distribution: Redhat 7 and above. Distribution: Redhat 7 and above.
Buildroot: %{_tmppath}/%{name}-root Buildroot: %{_tmppath}/%{name}-root

View File

@ -81,7 +81,7 @@ template class __declspec(dllexport) std::vector<std::string>;\n\
eval "$varname='$value'" eval "$varname='$value'"
done done
# Process all the .in files in the "google" subdirectory # Process all the .in files in the "ctemplate" subdirectory
mkdir -p "$1/windows/ctemplate" mkdir -p "$1/windows/ctemplate"
for file in "$1"/ctemplate/*.in; do for file in "$1"/ctemplate/*.in; do
echo "Processing $file" echo "Processing $file"