New release 20110919 -- highlights

684 views
Skip to first unread message

Kai Huang

unread,
Sep 20, 2011, 1:20:25 AM9/20/11
to Closure Templates Discuss
Hi all,

We just uploaded a new release of Closure Templates. The biggest
changes in this release are:

+ Contextual autoescaping: Smarter autoescaping for security.
http://code.google.com/closure/templates/docs/security.html
+ Injected data: Automatically pass common data to all subtemplates.
http://code.google.com/closure/templates/docs/concepts.html#injecteddata
+ Delegates: Write multiple implementations and select one at a later
time.
http://code.google.com/closure/templates/docs/commands.html#deltemplate
+ List and map literals.
http://code.google.com/closure/templates/docs/concepts.html#expressions
+ New Java rendering API.
http://code.google.com/closure/templates/docs/java_usage.html#rendering
+ Much faster rendering in Java usage.

There are also a number of little conveniences, such as:

+ The 'namespace' tag supports the 'autoescape' attribute.
http://code.google.com/closure/templates/docs/concepts.html#filestructure
+ A function to get the keys of a map, e.g. to iterate over them.
http://code.google.com/closure/templates/docs/concepts.html#functions

Finally, there are many other changes and fixes, including improved
code generation and a cleaner codebase. Enjoy!

Cheers,
Kai Huang and Mike Samuel

Mark Derricutt

unread,
Sep 20, 2011, 7:00:21 AM9/20/11
to closure-temp...@googlegroups.com
Is this release available from Maven Central at all?  And if not - could someone from the Closure team get it deployed there?

Mark

Raul Rangel

unread,
Sep 20, 2011, 8:39:12 AM9/20/11
to Closure Templates Discuss
Awesome!! I'll give it a shot today!

Thanks to everyone involved.

On Sep 19, 11:20 pm, Kai Huang <kai.hu...@gmail.com> wrote:
> Hi all,
>
> We just uploaded a new release of Closure Templates. The biggest
> changes in this release are:
>
> + Contextual autoescaping: Smarter autoescaping for security.
>    http://code.google.com/closure/templates/docs/security.html
> + Injected data: Automatically pass common data to all subtemplates.
>    http://code.google.com/closure/templates/docs/concepts.html#injecteddata
> + Delegates: Write multiple implementations and select one at a later
> time.
>    http://code.google.com/closure/templates/docs/commands.html#deltemplate
> + List and map literals.
>    http://code.google.com/closure/templates/docs/concepts.html#expressions
> + New Java rendering API.
>    http://code.google.com/closure/templates/docs/java_usage.html#rendering
> + Much faster rendering in Java usage.
>
> There are also a number of little conveniences, such as:
>
> + The 'namespace' tag supports the 'autoescape' attribute.
>    http://code.google.com/closure/templates/docs/concepts.html#filestruc...

Raul Rangel

unread,
Sep 20, 2011, 8:43:43 AM9/20/11
to Closure Templates Discuss
Awesome!! I'll give it a shot today!

Thanks to everyone involved.

On Sep 19, 11:20 pm, Kai Huang <kai.hu...@gmail.com> wrote:
> Hi all,
>
> We just uploaded a new release of Closure Templates. The biggest
> changes in this release are:
>
> + Contextual autoescaping: Smarter autoescaping for security.
>    http://code.google.com/closure/templates/docs/security.html
> + Injected data: Automatically pass common data to all subtemplates.
>    http://code.google.com/closure/templates/docs/concepts.html#injecteddata
> + Delegates: Write multiple implementations and select one at a later
> time.
>    http://code.google.com/closure/templates/docs/commands.html#deltemplate
> + List and map literals.
>    http://code.google.com/closure/templates/docs/concepts.html#expressions
> + New Java rendering API.
>    http://code.google.com/closure/templates/docs/java_usage.html#rendering
> + Much faster rendering in Java usage.
>
> There are also a number of little conveniences, such as:
>
> + The 'namespace' tag supports the 'autoescape' attribute.
>    http://code.google.com/closure/templates/docs/concepts.html#filestruc...

Tõnis

unread,
Sep 20, 2011, 5:24:36 PM9/20/11
to Closure Templates Discuss
Hi

I think there is some mixup. The Javascript package contains
SoyParseInfoGenerator.jar instead of SoyToJsSrcCompiler.jar .

It's causing us issues at http://groups.google.com/group/limejs/browse_thread/thread/ba7c3902372e9770

Or am I missing something?

On Sep 20, 8:20 am, Kai Huang <kai.hu...@gmail.com> wrote:
> Hi all,
>
> We just uploaded a new release of Closure Templates. The biggest
> changes in this release are:
>
> + Contextual autoescaping: Smarter autoescaping for security.
>    http://code.google.com/closure/templates/docs/security.html
> + Injected data: Automatically pass common data to all subtemplates.
>    http://code.google.com/closure/templates/docs/concepts.html#injecteddata
> + Delegates: Write multiple implementations and select one at a later
> time.
>    http://code.google.com/closure/templates/docs/commands.html#deltemplate
> + List and map literals.
>    http://code.google.com/closure/templates/docs/concepts.html#expressions
> + New Java rendering API.
>    http://code.google.com/closure/templates/docs/java_usage.html#rendering
> + Much faster rendering in Java usage.
>
> There are also a number of little conveniences, such as:
>
> + The 'namespace' tag supports the 'autoescape' attribute.
>    http://code.google.com/closure/templates/docs/concepts.html#filestruc...

Mike Samuel

unread,
Sep 20, 2011, 6:09:32 PM9/20/11
to closure-temp...@googlegroups.com
2011/9/20 Tõnis <tonis...@gmail.com>:

> Hi
>
> I think there is some mixup. The Javascript package contains
> SoyParseInfoGenerator.jar instead of SoyToJsSrcCompiler.jar .
>
> It's causing us issues at  http://groups.google.com/group/limejs/browse_thread/thread/ba7c3902372e9770
>
> Or am I missing something?

You're not missing anything. There's a bug in the build.xml that I
used to generate it. I'm working on it.

Mike Samuel

unread,
Sep 20, 2011, 6:21:24 PM9/20/11
to closure-temp...@googlegroups.com
2011/9/20 Mike Samuel <mikes...@gmail.com>:

I fixed the Downloads. Please try the latest.

Mark Derricutt

unread,
Sep 20, 2011, 6:30:24 PM9/20/11
to closure-temp...@googlegroups.com
I'm curious - I've not looked at the source repository for closure templates yet - but surely something like this should have been caught by tests, or by people internally using closure-templates?

Mark

Mike Samuel

unread,
Sep 20, 2011, 6:37:27 PM9/20/11
to closure-temp...@googlegroups.com
2011/9/20 Mark Derricutt <ma...@talios.com>:

> I'm curious - I've not looked at the source repository for closure templates
> yet - but surely something like this should have been caught by tests, or by
> people internally using closure-templates?
> Mark

We do run test-built-jars as part of our pre-release process:
http://code.google.com/p/closure-templates/source/browse/trunk/build.xml#521
It tests the jars that *should* be included in the zips. It does not
zip everything up, then extract the jars so it did not catch this
problem.

Internally, we do not use ant to build much, so the problem in
build.xml went unnoticed.

Reply all
Reply to author
Forward
0 new messages