michaelleeallen / reducto

A small module that aims to reduce the amount of code needed to create apps with a distributed back end in express.js

Home Page:http://michaelleeallen.github.io/reducto/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support route view config

michaelleeallen opened this issue · comments

Each route should be able to specify the name of a view template to render its data. Should not be required though. Would be found at res.locals.viewName, config for route would look something like:

{
  "/my/route": {
    "get": {
      "viewName": "path/to/view"
    }
  }
}

I've been testing out reducto with express, this enhancement would be awesome 👍

I'm going to try and find some time this week end and make this happen. Thanks for the feedback.

Oh awesome, btw I meant to say testing out with jade, express was a given ;)