dpinol / closure-templates

Automatically exported from code.google.com/p/closure-templates
Apache License 2.0
0 stars 0 forks source link

--shouldProvideRequireSoyNamespaces generates requires for soy & soydata rather than goog.soy, goog.soy.data #67

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile some .soy templates with --shouldProvideRequireSoyNamespaces
2. Try to require these from compiled closure files.

What is the expected output? What do you see instead?
- Expect to be able to use directly
- Can't use without s/soy/goog.soy/; s/soydata/soy.data/;

What version of the product are you using? On what operating system?
  "closure-library":
    "http://closure-library.googlecode.com/svn/trunk@2432",
  "closure-compiler":
    "http://closure-compiler.googlecode.com/svn/trunk@2458",
  "closure-stylesheets":
    "git+https://code.google.com/p/closure-stylesheets@43c9b6b37799",
  "closure-templates":
    "http://closure-templates.googlecode.com/svn/trunk@28",

Please provide any additional information below.

This does NOT work:
  goog.require('soy');
  goog.require('soydata');

This does work:
  goog.require('goog.soy');
  goog.require('goog.soy.data');

Original issue reported on code.google.com by sheridan...@gmail.com on 15 Jan 2013 at 1:54

GoogleCodeExporter commented 8 years ago
Are you including soyutils_usegoog.js in your project?

Original comment by kai.hu...@gmail.com on 5 Mar 2013 at 12:26

GoogleCodeExporter commented 8 years ago
> Are you including soyutils_usegoog.js in your project?

Thats shouldnt be necessary if the user already is working with the closure lib.
Here, we already have the packages goog.soy & goog.soy.data(which render the 
inclusion the soyutiles_usegoog.js unnecessary)

Original comment by carsten.kraus on 3 Jul 2013 at 4:29

GoogleCodeExporter commented 8 years ago
Closure Templates has migrated to GitHub: 
https://github.com/google/closure-templates. Please reopen this there if it's 
still an issue.

Original comment by brendan....@gmail.com on 27 Feb 2015 at 12:20