Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Render view helper | |
// if the request is coming from mobile and if you have a view | |
// with users.mobile.jade, then that view will be rendered | |
app.use(function (req, res, next) { | |
res._render = res.render | |
res.render = function (template, locals, cb) { | |
var ua = req.header('user-agent') | |
var fs = require('fs') |
- [by. Select elements][1]
- [fragment. Turn HTML into DOMFragments][2]
- [class-list. Cross browser HTML5 classList implementation][3]
- [dom-walk. Traverse the DOM in tree order][4]
- [xhr. Minimal cross browser, cross domain XHR][5]
- [insert. Cross browser DOM4 insertion methods][6]
- [to-array. Convert nodelists into arrays][7]
- [hidden. Cross browser HTML5 hidden property][8]
NewerOlder