Skip to content

parentData parameter to [re]fillTemplate doesn't seem to be working #1

Description

@rnikander

I'm just starting to use this, so maybe I'm missing something. I tried a small example...

<script src="jquery-1.10.2.js" type="text/javascript"></script>
<script src="js-template.js" type="text/javascript"></script>
...
<div id='template1'>
     <h1 data-jst-content='title'>Title</h1>
     <div>Extra: <span data-jst-content='foo'>...</span>       
     </div>
</div>
var favorites = {
  title: "Favorites",
  favs: ["apple", "banana", "orange"]
};

var extra = {
  foo: 'foo extra'
};

$(document).ready(function () {
    $('#template1').refillTemplate(favorites, extra);
});

Nothing is showing up after Extra:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions