liu wen ju
liu wen ju
thanks! Can you explain why don't recommend use underscore in views?
I puts this in config/environment.js, but still not work , it show me "_ is not defined" , is something wrong? Thanks.
I use "express": "~3.x" , "compound": ">= 1.1.0"
Here is my config/environment.js ``` javascript module.exports = function (compound) { var express = require('express'); var app = compound.app; var _ = require('underscore'); require('./mongoose').init(compound); app.locals._ = compound.controllerExtensions._ = require('underscore'); app.configure(function(){...
谢谢,很不错的建议 ;)