leonidas / transparency

Transparency is a semantic template engine for the browser. It maps JSON objects to DOM elements by id, class and data-bind attributes.
http://leonidas.github.com/transparency/
MIT License
969 stars 112 forks source link

Transparency no longer working in node.js #100

Closed ctrimble closed 11 years ago

ctrimble commented 11 years ago

I am getting the following error when using transparency:

node_modules/transparency/dist/transparency.js:10
  Transparency = window.Transparency = {};
                 ^
ReferenceError: window is not defined

It looks like this line was introduced in commit 96250b93a9177ca69dcab56959ee0936096cefe4.

pyykkis commented 11 years ago

Thanks, I'll fix that asap.

pyykkis commented 11 years ago

Fixed in 0.9.12, added server-side test case in Travis and updated example: https://github.com/leonidas/transparency/blob/master/examples/hello-server/server.js

ctrimble commented 11 years ago

I pulled this new version into my project and the issue is resolved. Thanks!