Code Monkey home page Code Monkey logo

express-handlebars-paginate's People

Contributors

amirshakya2010 avatar babiz avatar r3xakead0 avatar rssdanielreibl avatar thesuperfly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

express-handlebars-paginate's Issues

Error: hbs is not defined

Hi,

I am using express hanlebars and the following code:
var paginateHelper = require('express-handlebars-paginate');
hbs.handlebars.registerHelper('paginateHelper', paginateHelper.createPagination);

I get the following error:
hbs.handlebars.registerHelper('paginateHelper', paginateHelper.createPagination);
^

ReferenceError: hbs is not defined

Can you help?

Missing bootstrap styles

When I install the package, it isn't the same as the one in your repo. The npm one shows:

/**

  • Created by Babish Shrestha on 4/8/2015.
    */
    and is missing the bootstrap styles.

Any idea of when that will be resolved?

Pagination link

Hi.
Is it possible to change pagination link from "?page=id" to "/id" ?

Boostrap 4

Can I construct to match the new pagination on bootstrap 4 so I can add the new classes and how can I do this without modifying the npm module?

Missing helper "paginate"

I'm trying to implement this currently and I'm getting the following

Missing helper "paginate"

I have the following code.

router.get('/dashboard', ensureAuthenticated, (req, res) => {
  User.find({}, function(err, users) {
    res.render('dashboard/index.hbs', {
      pageTitle: 'Dashboard',
      users: users,
      pagination: {
        page: 1,
        limit: 6,
        // totalRows: TotalNoOfROWS,
        queryParams: users
      }
    });
  });
});
const express = require('express');
const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const hbs = require('hbs');
const expressValidator = require('express-validator');
const flash = require('connect-flash');
const session = require('express-session');
const passport = require('passport');
const LocalStrategy = require('passport-local').Strategy;
const mongoose = require('mongoose');
const fs = require('fs');
const paginateHelper = require('express-handlebars-paginate');

hbs.registerHelper('paginateHelper', paginateHelper.createPagination);
{{paginate pagination limit="6"}}

What am I doing wrong here?

Breaks the view

I could see the pagination element but does not render the rest of the view.
shot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.