Questions tagged [rendr]

Rendr is a small library from Airbnb that allows you to run your Backbone.js apps seamlessly on both the client and the server.

Rendr is a small library from Airbnb that allows you to run your Backbone.js apps seamlessly on both the client and the server. Allow your web server to serve fully-formed HTML pages to any deep link of your app, while preserving the snappy feel of a traditional Backbone.js client-side MVC app.

https://github.com/rendrjs/rendr

21 questions
0
votes
1 answer

rendr isomorphic framework trigger route

I'd like to trigger a route change via javascript in RendrJS. My use case is that the user is on the /register page and upon a successful registration attempt I would like to direct the user to the /account page. Whats the best way to achieve this?
jaredrada
  • 1,130
  • 3
  • 12
  • 25
0
votes
1 answer

localStorage undefined in rendr controller

Im getting 500 ReferenceError: localStorage is not defined in the controller of my Rendr app. Im trying to fetch my Authorization token from localStorage and set it as a header before I fetch the spec. I've also tried window.localStorage but then I…
LongJeongS
  • 27
  • 1
  • 5
0
votes
2 answers

how to specify optional parameter for rendrjs router

I went through the documentation of the router of rendrjs and there is no mention of an optional parameter, and although they are saying, it's build very similar to the backbone router, it doesn't understand () as optional parameter... so, does…
Labib Ismaiel
  • 1,240
  • 2
  • 11
  • 21
0
votes
1 answer

Mocha run rendr collection ajax unit test

I try to use rendr(backbone in client&server) to create a webapp and try to implemented some unit test. Is there a way to run collection fetch unit test in mocha? I want to use sinon-chai to mock ajax request in mocha. But Error happen when I try…
Tyler.z.yang
  • 2,402
  • 1
  • 18
  • 31
0
votes
1 answer

Backbone - Populating multiple models from one fetch call in my controller

Say I have a collection (of search results, for example) which needs to be populated and a pagination model that needs to take values for current page, total number of pages, etc. In my controller, I make a GET call to an API which returns both…
vinsanity555
  • 241
  • 1
  • 11
0
votes
2 answers

Browserify and Rendr using Gulp

I am trying to browserify a Rendr application. I have tried multiple ways with no success. Here is one version that I have tried using Gulp-browserify(Now deprecated in favor of plain browserify). gulp.task('browserify-gulp', function() { …
Berkeley Martinez
  • 2,786
  • 2
  • 14
  • 18
1
2