shindig-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Barmeyer (JIRA)" <>
Subject [jira] Commented: (SHINDIG-1162) Problem while updating a dataset and re-rendering a template
Date Wed, 23 Dec 2009 01:53:30 GMT


Eric Barmeyer commented on SHINDIG-1162:

Stumbled over a very similar error when I tried to render one of my templates:

<div id="test"></div>
<script type="text/os-template" tag="foo:bar">
<script type="text/javascript">
  function init() {
    var template = opensocial.template.getTemplate("foo:bar");
    template.renderInto(document.getElementById("test"), { data : "Hello World!" });

This results in "1Hello World!" instead of just "Hello World!".

My current fix for this is to turn off the javascript compression in the config file. Couldn't
figure out yet why this happen or how to fix it. Could this be a bug in the javascript compressor?

> Problem while updating a dataset and re-rendering a template
> ------------------------------------------------------------
>                 Key: SHINDIG-1162
>                 URL:
>             Project: Shindig
>          Issue Type: Bug
>          Components: Javascript 
>         Environment: PHP Shindig (rev 810159)
>            Reporter: Matthieu Huguet
>         Attachments: test-1162.xml
> Here is an example gadget :
> After the first dataset update /  template processing :
>  - A number (debug?) is prepended to the ${test} variable in the output
> After the second dataset update / template processing :
> - The number is still there, incremented
> -  The <h1></h1> block surrounding the ${test} variable has been removed

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message