Skip to content


Subversion checkout URL

You can clone with
Download ZIP
C Shell Python C# Java Ruby Other
Latest commit 22a073a Jean-Baptiste Queru committed with Android Git Automerger am 572179f: am 5db8e26: Merge "Build 64bit clearsilver if jdk is 64bi…
…t version."

* commit '572179f540e1025366331290a61e99d8122045ae':
  Build 64bit clearsilver if jdk is 64bit version.
Failed to load latest commit information.
autom4te.cache auto import from //depot/cupcake/@135843
cgi Build 64bit clearsilver if jdk is 64bit version.
contrib auto import from //depot/cupcake/@135843
cs Build 64bit clearsilver if jdk is 64bit version.
csharp auto import from //depot/cupcake/@135843
dso auto import from //depot/cupcake/@135843
imd auto import from //depot/cupcake/@135843
java-jni Build 64bit clearsilver if jdk is 64bit version.
m4 auto import from //depot/cupcake/@135843
man/man3 auto import from //depot/cupcake/@135843
mod_ecs auto import from //depot/cupcake/@135843
perl auto import from //depot/cupcake/@135843
ports auto import from //depot/cupcake/@135843
python auto import from //depot/cupcake/@135843
ruby auto import from //depot/cupcake/@135843
scripts auto import from //depot/cupcake/@135843
util Build 64bit clearsilver if jdk is 64bit version. Remove unnecessary java version check
CS_LICENSE auto import from //depot/cupcake/@135843 Clean old libraries while switching to Java6
ClearSilver.h auto import from //depot/cupcake/@135843
INSTALL auto import from //depot/cupcake/@135843
LICENSE auto import from //depot/cupcake/@135843
Makefile auto import from //depot/cupcake/@135843
README auto import from //depot/cupcake/@135843
README.python auto import from //depot/cupcake/@135843
acconfig.h auto import from //depot/cupcake/@135843
aclocal.m4 auto import from //depot/cupcake/@135843 auto import from //depot/cupcake/@135843
config.guess auto import from //depot/cupcake/@135843
config.sub auto import from //depot/cupcake/@135843
configure auto import from //depot/cupcake/@135843 auto import from //depot/cupcake/@135843
cs_config.h auto import from //depot/cupcake/@135843
install-sh auto import from //depot/cupcake/@135843
mkinstalldirs auto import from //depot/cupcake/@135843 auto import from //depot/cupcake/@135843


* Clearsilver README   

For more information, see the website:

This package includes Clearsilver, the CGI kit and HTML templating
system. For information about building and installing, see the
included INSTALL file. This package also includes tools which
help you use Clearsilver, as well as a few examples.

*** Clearsilver

* Clearsilver - This is our html template system and cgi kit. 

There are too many great things about clearsilver to list them all
here, but here are some of the salient points:

  * get the html out of your code
  * loops, conditionals, macros, and stuff
  * cgi kit unifies query variable and cookie handling
  * super-easy to go from static mockup to dynamic page
  * run multiple front-ends on the same application code
  * super-fast C-library
  * unifies Query variable and cookie handling
  * language neutral (C,C++,Python,Ruby,Perl,Java,C#)
  * nice iterative page debugging/development features
  * generate static-data-driven page content without using any code
  * did I mention super-fast?

Supported language information:


*** Tools


This is our transparent translation system. It's based on how we did
translation at Yahoo!. You leave all the english strings right in the
clearsilver templates. trans parses the html and extracts your
language strings into a translation database. You can then translate
the strings using any means. (it includes tools for dump and loading
per-language files for shipping to translators). Occasionally trans
isn't smart enough to find your language strings, in this case you can
manually extract them into static language string files and trans will
automatically pick them up. When it comes time to ship, trans
generates language-independent templates, and a set of language files
from your database.

*** Examples

* static.cgi

This is a standalone binary which handles Clearsilver rendering of
static content. This is a great way to play with clearsilver syntax
before you start writing dynamic CGIs with it. This is also a great
way to do webpage mockups with much more power than server side 
includes.  See the INSTALL file for information about configuring 
this for use with apache.

Something went wrong with that request. Please try again.