Comments (10)
I should add, the version we are using is "com.google.template" % "soy" % "2015-04-10"
.
from closure-templates.
Just to say we're seeing this behaviour too.
We're trying to upgrade to the latest version (2015-04-10) and as we've previously been using noAutoescape in a couple of places wanted to be able to set the autoescaping to the old behaviour (i.e. contextual). Setting autoescape on either the individual template or namespace doesn't seem to work.
from closure-templates.
I believe that you now need to set it to "deprecated-contextual",
On Mon, Jun 29, 2015, 7:07 AM John Montgomery [email protected]
wrote:
Just to say we're seeing this behaviour too.
We're trying to upgrade to the latest version (2015-04-10) and as we've
previously been using noAutoescape in a couple of places wanted to be able
to set the autoescaping to the old behaviour (i.e. contextual). Setting
autoescape on either the individual template or namespace doesn't seem to
work.—
Reply to this email directly or view it on GitHub
#44 (comment)
.
from closure-templates.
Ah that worked!
Digging in I see those values seem to be defined here:
So the valid values for autoescape would seem to be:
- deprecated-noautoescape
- deprecated-noncontextual
- deprecated-contextual
- strict
So I guess the main bug really is not getting an error when autoescape doesn't match one of those valeus. That and the documentation not matching. It still references true/false/contextual in these locations:
- https://developers.google.com/closure/templates/docs/commands#namespace
- https://developers.google.com/closure/templates/docs/commands#template
- https://developers.google.com/closure/templates/docs/security#contextual
Just mentioning this here, as someone else might find it useful.
I don't seem to see the docs in the Repo here - otherwise I'd ask if you want them updated...
Anyway, thanks again for the info. Saved quite a bid of head scratching...
cheers,
John
from closure-templates.
I think I may have fixed the poor error message issue in
19c61de
I think you are just on an earlier release (sorry!).
Thanks for the pointer about the docs, I'll try to get those fixed
from closure-templates.
OK, glad to hear it's fixed and you're on top of the docs.
Guess they'll be a new release soonish?
from closure-templates.
@Ubehebe is in charge of maven/github pushes
from closure-templates.
re docs, it looks like there is an effort underway to convert all our existing docs to markdown and (eventually) get them into this repository. so updating the docs may take a while :(
from closure-templates.
....two months later the docs are updated. Sorry, I just lost track of this.
from closure-templates.
Hey it's done at least! Thank you.
from closure-templates.
Related Issues (20)
- Internal Soy Error when compiling Soy headers HOT 2
- comments in parameter lists HOT 2
- Missing documentation / example how to use protobufs in Soy HOT 5
- Google UI HOT 1
- Latest release (release-2022-10-26) has several security issues
- Invalid multimap flag entry. No '=' found: io.noticeable.newspage.soy.functions.ContainsFunction HOT 1
- Dependencies addition of soyutils_usegoog.js makes hard to compile soy files HOT 5
- src/js/soyutils/soyutils_usegoog.js:46:264 ERROR - [JSC_MISSING_MODULE_OR_PROVIDE] Required namespace "safevalues" never defined. HOT 2
- Missing module HOT 4
- src/js/soyutils/soyutils_usegoog.js:46:264 ERROR - [JSC_MISSING_MODULE_OR_PROVIDE] Required namespace "safevalues" never defined. HOT 2
- malware HOT 1
- https://github.com/google/closure-templates/issues/1947#issue-2170271938 HOT 2
- Request to publish older versions to npm
- There is a vulnerability in google-gson 2.7,upgrade recommended HOT 1
- SoyToJsSrcCompiler.jar is out of date HOT 1
- Remove `--deps` from CLI usage message
- What kind of path can be specified in import statements?
- Invalid 'for' command text
- variable soy is undeclared HOT 1
- Ts** are not declared HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from closure-templates.