Shindig
  1. Shindig
  2. SHINDIG-1737

Declaring Variables Inline - <os:Var> does not work

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.0-beta1
    • Fix Version/s: 2.5.0-beta4
    • Component/s: Java
    • Labels:
      None

      Description

      Declaring Variables Inline - <os:Var> does not work. Following is a simple gadget using os:Var.
      The gadget default view should show "This value of myvar is 3". But actaully is shows "This value of myvar is".

      <Module>
      <ModulePrefs title="Varible Replacement Templating Example" height="400" width="400">
      <Require feature="opensocial-templates">
      </Require>
      </ModulePrefs>
      <Content view="default" type="html">
      <![CDATA[
      <div>
      <script type="text/os-template">
      <os:Var key="myvar" value="3">This value of myvar is $

      {myvar}

      </os:Var>
      </script>
      </div>
      ]]>
      </Content>
      </Module>

        Activity

        Dan Dumont made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 2.5.0-beta4 [ 12322494 ]
        Resolution Fixed [ 1 ]
        Hide
        Dan Dumont added a comment -

        Committed r1372882

        Show
        Dan Dumont added a comment - Committed r1372882
        Erik BI made changes -
        Attachment 1737 (1).patch [ 12540839 ]
        Erik BI made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Yao Zhang created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Yao Zhang
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development