airbnb/rendr — pull request #67 by michalkrupa (2013-06-17 02:23:18+00:00)
Title: Rendr Imports

Hi guys,

My group is using Rendr as a base for our application. However, our intention is to serve content inline for mobile sites, as to make it more efficient on page load.

As static assets change and we use Grunt watch tasks to keep track of and then rebundle assets, its a pain to go in and manually add the latest version files into the docs. Also, it takes up unnecessary space.

Therefore, I created rendr-importer to take care of this. It is possible to pass global variables through the templating engine, and have them compile into the templates this way. Everything is stored as an array, so you could even keep track of section names, styling tweaks, etc. in this way and then import them.

I've included rendr-importer as a dependency, and also added the necessary changes to ./server/viewEngine.js These are the only files that require changes from my commits (sorry that my fork is a little messy)