Skip to content

Dug limit not working with data #18

Description

@mattiascibien

Hello,
I have tried to use dug.js with this code

dug({
      endpoint: 'https://api.github.com/repos/superbedit/superbedit/commits',
      target: 'commits',
      error: function(){
      console.log('error');
      },
      template: '{{#data|dug.limit:2}}\
        <div class="row">\
          <div class="large-2 columns">\
            <img src="{{author.avatar_url}}" width="64" height="64">\
          </div>\
          <div class="large-10 columns">\
            <p><b>{{commit.author.name}}</b>:<br/>{{commit.message}}</p>\
          </div>\
        </div>\
      {{/data}}'
    });

but it seems that the output is not correct as i get:
dug

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