mirror of
https://github.com/OlafvdSpek/ctemplate.git
synced 2025-09-28 19:05:49 +08:00

* ctemplate: version 0.94 release * Use arena for all memory allocations: 3-4% speedup (csilvers) * Add the ability to hook the annotation system (ryoji) * Expose Expand(ExpandEmitter*,...) to allow custom emitters (csilvers) * Add RemoveStringFromTemplateCache (csilvers) * Add new :url_escape_with_arg=css modifier for urls in CSS (jad) * Support tr1's unordered_map in preference to hash_map (csilvers) * Use Murmurhash for all string hashing, rather than hash<> (csilvers) * Better parsing of meta tags and dangling < for auto-escape (falmeida) * Add AddXssSafeModifier (jad) * Allow disabling auto-escape for 'trusted' vars (jad) * BUGFIX: resolve possible memory-leaks in CopyDictionary (csilvers) * BUGFIX: fix bug when reloading with AUTOESCAPE pragma (jad) * Updated autoconf version to 2.61 and libtool version to 1.5.26
39 lines
1.8 KiB
Plaintext
39 lines
1.8 KiB
Plaintext
This project has been ported to Windows. A working solution file
|
|
exists in this directory:
|
|
google-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
|
|
automatically convert the files to the latest format for you.
|
|
|
|
When you build the solution, it will create libctemplate.dll, the main
|
|
library for this project, plus a number of unittests, which you can
|
|
run by hand (or, more easily, under the Visual Studio debugger) to
|
|
make sure everything is working properly on your system. The binaries
|
|
will end up in a directory called "debug" or "release" in the
|
|
top-level directory (next to the .sln file).
|
|
|
|
If you wish to link to ctemplate statically instead of using the .dll,
|
|
you can; see the example project template_unittest_static. For this
|
|
to work, you'll need to add "/D CTEMPLATE_DLL_DECL=" to the compile
|
|
line of every ctemplate .cc file.
|
|
|
|
Note that these systems are set to build in Debug mode by default.
|
|
You may want to change them to Release mode.
|
|
|
|
Currently, Template::StringToTemplate returns a Template object that
|
|
you, the caller, must free. We've heard reports that Windows can have
|
|
trouble allocating memory in a .dll that is meant to be freed in the
|
|
application. Thus, we suggest you not use StringToTemplate from
|
|
Windows. Instead, you can use Template::StringToTemplateCache()
|
|
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:
|
|
http://groups.google.com/group/google-ctemplate
|
|
http://code.google.com/p/google-ctemplate/issues/list
|
|
|
|
-- craig
|