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
7
votes
1 answer

List modules bundled by Browserify

I am using Browserify and Grunt to bundle our RendrJS webapp. I would like to analyze the bundle to see which modules it contains to see if any code is superfluous. This can happen since in Rendr some js code might only run on the server. How do I…
Skanaar
  • 370
  • 2
  • 9
7
votes
3 answers

how stable is AirBnB node.js rendr?

I wanted to know if anyone has been using AirBnB Rendr and is it stable and ok to use in commercial projects or is it still changing a lot? I'm developing a website which can run both client and server based, this mean I need to be able to render…
Dory Zidon
  • 10,497
  • 2
  • 25
  • 39
4
votes
1 answer

What is the purpose of using isomorphic webapps?

What I understood? It shares some code between client and server as both are in javascript. eg: form validation. How does this work? Can the shared code be seen from the browser? If yes then it becomes easy for an attacker to find loopholes in our…
Konza
  • 2,143
  • 17
  • 30
2
votes
1 answer

Can I use Testcafe to execute a Rendr App function?

I'm investigating TestCafe to use as my test automation framework, and I've hit a bit of a stumbling block in regards to executing a function using the Rendr App on my AUT. With Cypress.io, Protractor and Puppeteer etc I'm able to run the same…
Rob C
  • 662
  • 5
  • 15
2
votes
1 answer

Grunt registerTask() Not Running Tasks in List

I have added the following registerTask calls to this Gruntfile.js grunt.task.registerTask('runDebug', 'Run the app with debug flag', function() { var done = this.async(); grunt.util.spawn({ cmd: 'node', args: ['--debug',…
Branka
  • 469
  • 1
  • 5
  • 11
2
votes
1 answer

Running Rendr Examples Results in HTTP 502 Error When Links Clicked

I have built and run Rendr's example apps on Ubuntu 13.10 using Node v0.8.6. When I click on the Repos or Users links, I get an HTTP 502 - Bad Gateway error, but when I refresh page (load from server) it works (200 - OK) and the repos or users are…
Peter
  • 1,720
  • 3
  • 18
  • 30
2
votes
1 answer

Airbnb Rendr RESTful API authentication

I've been playing around with AirBnb's Rendr using the app template they provided on GitHub. In their example they connect to a RESTful API using HTTP Basic Auth. However in their code they provide the credentials for authentication directly on…
benjiman
  • 3,888
  • 4
  • 29
  • 44
1
vote
1 answer

angularjs rendering on server side asp.net

I have used angularjs framework for front-end and asp net mvc for back-end to develop my web app. As you know angularjs has a major flaw when it comes to SEO. There are some solutions like using phantomjs to create snapshots of website and serve it…
Mohamad Ghafourian
  • 1,052
  • 1
  • 14
  • 26
1
vote
1 answer

Rendr App.router.currentView is undefined

When my Rendr app boots, App.router.currentView always evaluates to undefined and this in turn breaks my client side rendering as if (this.currentView) { this.currentView.remove(); } does not evalutate to true in the funcion…
LongJeongS
  • 27
  • 1
  • 5
1
vote
3 answers

Rendr how to pass model to subview in RendrJS isomorphic framework

Assume I'm building a blog where the home page renders a list of blog posts. My question is how to pass a model to each child post view? I have an index.hbs iterating through a collection {{#forEach models}} {{view "post_view" model=value…
jaredrada
  • 1,130
  • 3
  • 12
  • 25
1
vote
1 answer

$(window).on("load") not triggered in postRender

I have a jquery code that I have to trigger after the page is loaded, I am doing it in postRender function call of the view, but postRender and window load event are totally async, so, the window load event might happen before I am in postRender…
Labib Ismaiel
  • 1,240
  • 2
  • 11
  • 21
1
vote
1 answer

CommonJS Modules - Exporting a function that returns a function with arguments

In this rendr - sessions example, there's an express middleware module... module.exports = function incrementCounter() { return function incrementCounter(req, res, next) { var app = req.rendrApp , count = app.get('session').count || 0; …
Seth
  • 10,198
  • 10
  • 45
  • 68
0
votes
0 answers

How to configure what gets rendered on server-side in Rendr?

Where to configure what part gets rendered on server-side and what renders on client-side while using Rendr.js? The documentation and blogs everywhere mention that it's main purpose is to make a common way to write client and server code. Rendr is…
0
votes
1 answer

Rendr add custom header to fetch request (such as basic auth)

I'm building a Rendr app and I'd like to populate my user model by making a request to my API service's /login endpoint. That endpoint simply expects a basic auth header. I see Rendr has an option to allow custom headers but the problem is the…
jaredrada
  • 1,130
  • 3
  • 12
  • 25
0
votes
1 answer

rendr-handlebars with gulp

I'm trying to use gulp as the compiler for my rendr app, but I'm running into the issue of 500 TypeError: template is not a function at module.exports.Backbone.View.extend.getInnerHtml…
LongJeongS
  • 27
  • 1
  • 5
1
2