express-expose
express-expose copied to clipboard
Expose raw js, objects, and functions to the client-side (awesome for sharing utils, settings, current user data etc)
ref: https://github.com/expressjs/discussions/issues/134 @tj , @niftylettuce - you have been identified as the last / most active committer in this repo which is inactive for a while. This ping is to...
on Client-Side, express-expose require() is not work with RequireJS. Server-Side: ``` app.exposeRequire(true) ``` Client-Side (jade): ``` script(src='/js/libs/require.js', data-main='/js/main') script!= javascript ``` I tried to write test. but it has already...
This would allow writing plugins which cache the app level output in a separate file, to avoid loading it on every page request.
At the moment arrays become objects with indexes 0, 1, 2 etc. This isn't helpful if you then need to do things like iterate over them. This patch fixes that.
If we don't keep the browser from misbehaving, this happens:  ...and we can't have that happen. More on this issue here: http://stackoverflow.com/questions/8749001/escaping-html-entities-in-javascript-string-literals-within-the-script-block
Implicit text-only status for `script` and `style` tags in jade has been [deprecated](https://github.com/visionmedia/jade/pull/1036), and will be removed in a future version. To be prepared, all you need to do is...
This module creates content for an inline `` tag. However, if anything in the _content_ of that script tag includes ``, HTML5's parsing rules will _prematurely end the tag there_,...
My code for requiring expose looks like this: ------------------BEGIN CODE--------------------- var express = require('express') , expose = require('express-expose') , program = require('commander') , cookie = require('cookie') , routes = require('./routes')...
Would be nice if multiple calls to expose used the last in wins approach. It seems that the first call exposing a function or data is persisted.
Not sure if it's considered an issue but when `require('express-expose')` is _after_ `var app = require('express')()`, there is an error: `TypeError: Object function app(req, res){ app.handle(req, res); } has no...